+PerpetualSession::PerpetualSession(int x, int y, PreferencesWindow *pwindow)
+ : BC_CheckBox(x, y,
+ pwindow->thread->preferences->perpetual_session, _("Perpetual session"))
+{
+ this->pwindow = pwindow;
+}
+
+int PerpetualSession::handle_event()
+{
+ pwindow->thread->preferences->perpetual_session = get_value();
+ return 1;
+}
+