From 42b897bb31eb3332cb5cc44f196975c2f2f8921a Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 3 Nov 2005 22:12:00 +0000 Subject: [PATCH] add a go online checkbutton at the end of wizard --- src/config.py | 6 ++++ src/gtkgui.glade | 83 +++++++++++++++++++++++++++++++++--------------- 2 files changed, 64 insertions(+), 25 deletions(-) diff --git a/src/config.py b/src/config.py index 104e29538..f35d27e73 100644 --- a/src/config.py +++ b/src/config.py @@ -2450,6 +2450,9 @@ class AccountCreationWizardWindow: self.xml.signal_autoconnect(self) self.window.show_all() + def on_wizard_window_destroy(self, widget): + del gajim.interface.windows['wizard_window'] + def on_register_server_features_button_clicked(self, widget): helpers.launch_browser_mailer('url', 'http://www.jabber.org/network/') @@ -2535,7 +2538,10 @@ class AccountCreationWizardWindow: self.window.destroy() def on_finish_button_clicked(self, widget): + go_online = self.xml.get_widget('go_online_checkbutton') self.window.destroy() + if go_online: + gajim.interface.roster.send_status(self.account, 'online', '') def on_nick_entry_changed(self, widget): self.update_jid(widget) diff --git a/src/gtkgui.glade b/src/gtkgui.glade index 7808f5437..1bbe589c2 100644 --- a/src/gtkgui.glade +++ b/src/gtkgui.glade @@ -13497,6 +13497,7 @@ Status message GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST True + @@ -14256,45 +14257,77 @@ to the Jabber network. - + True False - 12 + 0 - + True - gtk-apply - 4 - 0.5 - 0.5 - 0 - 0 + False + 12 + + + + True + gtk-apply + 4 + 0.5 + 0.5 + 0 + 0 + + + 0 + False + True + + + + + + True + + False + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + 0 + False + False + + 0 - False + True True - + True - - False - False - GTK_JUSTIFY_LEFT - False - False - 0.5 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 + True + Go Online when I press Finish + True + GTK_RELIEF_NORMAL + True + False + False + True 0