add a go online checkbutton at the end of wizard
This commit is contained in:
parent
fcb9d9628f
commit
42b897bb31
|
@ -2450,6 +2450,9 @@ class AccountCreationWizardWindow:
|
||||||
self.xml.signal_autoconnect(self)
|
self.xml.signal_autoconnect(self)
|
||||||
self.window.show_all()
|
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):
|
def on_register_server_features_button_clicked(self, widget):
|
||||||
helpers.launch_browser_mailer('url', 'http://www.jabber.org/network/')
|
helpers.launch_browser_mailer('url', 'http://www.jabber.org/network/')
|
||||||
|
|
||||||
|
@ -2535,7 +2538,10 @@ class AccountCreationWizardWindow:
|
||||||
self.window.destroy()
|
self.window.destroy()
|
||||||
|
|
||||||
def on_finish_button_clicked(self, widget):
|
def on_finish_button_clicked(self, widget):
|
||||||
|
go_online = self.xml.get_widget('go_online_checkbutton')
|
||||||
self.window.destroy()
|
self.window.destroy()
|
||||||
|
if go_online:
|
||||||
|
gajim.interface.roster.send_status(self.account, 'online', '')
|
||||||
|
|
||||||
def on_nick_entry_changed(self, widget):
|
def on_nick_entry_changed(self, widget):
|
||||||
self.update_jid(widget)
|
self.update_jid(widget)
|
||||||
|
|
|
@ -13497,6 +13497,7 @@ Status message</property>
|
||||||
<property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
|
<property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
|
||||||
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
|
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
|
||||||
<property name="focus_on_map">True</property>
|
<property name="focus_on_map">True</property>
|
||||||
|
<signal name="destroy" handler="on_wizard_window_destroy" last_modification_time="Thu, 03 Nov 2005 22:08:55 GMT"/>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkVBox" id="vbox77">
|
<widget class="GtkVBox" id="vbox77">
|
||||||
|
@ -14256,45 +14257,77 @@ to the Jabber network.</property>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkHBox" id="hbox2986">
|
<widget class="GtkVBox" id="vbox103">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="homogeneous">False</property>
|
<property name="homogeneous">False</property>
|
||||||
<property name="spacing">12</property>
|
<property name="spacing">0</property>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkImage" id="image942">
|
<widget class="GtkHBox" id="hbox2986">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="stock">gtk-apply</property>
|
<property name="homogeneous">False</property>
|
||||||
<property name="icon_size">4</property>
|
<property name="spacing">12</property>
|
||||||
<property name="xalign">0.5</property>
|
|
||||||
<property name="yalign">0.5</property>
|
<child>
|
||||||
<property name="xpad">0</property>
|
<widget class="GtkImage" id="image942">
|
||||||
<property name="ypad">0</property>
|
<property name="visible">True</property>
|
||||||
|
<property name="stock">gtk-apply</property>
|
||||||
|
<property name="icon_size">4</property>
|
||||||
|
<property name="xalign">0.5</property>
|
||||||
|
<property name="yalign">0.5</property>
|
||||||
|
<property name="xpad">0</property>
|
||||||
|
<property name="ypad">0</property>
|
||||||
|
</widget>
|
||||||
|
<packing>
|
||||||
|
<property name="padding">0</property>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<widget class="GtkLabel" id="finish_label">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label" translatable="yes"></property>
|
||||||
|
<property name="use_underline">False</property>
|
||||||
|
<property name="use_markup">False</property>
|
||||||
|
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||||
|
<property name="wrap">False</property>
|
||||||
|
<property name="selectable">False</property>
|
||||||
|
<property name="xalign">0.5</property>
|
||||||
|
<property name="yalign">0.5</property>
|
||||||
|
<property name="xpad">0</property>
|
||||||
|
<property name="ypad">0</property>
|
||||||
|
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
||||||
|
<property name="width_chars">-1</property>
|
||||||
|
<property name="single_line_mode">False</property>
|
||||||
|
<property name="angle">0</property>
|
||||||
|
</widget>
|
||||||
|
<packing>
|
||||||
|
<property name="padding">0</property>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">False</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="padding">0</property>
|
<property name="padding">0</property>
|
||||||
<property name="expand">False</property>
|
<property name="expand">True</property>
|
||||||
<property name="fill">True</property>
|
<property name="fill">True</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkLabel" id="finish_label">
|
<widget class="GtkCheckButton" id="go_online_checkbutton">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="label" translatable="yes"></property>
|
<property name="can_focus">True</property>
|
||||||
<property name="use_underline">False</property>
|
<property name="label" translatable="yes">Go Online when I press Finish</property>
|
||||||
<property name="use_markup">False</property>
|
<property name="use_underline">True</property>
|
||||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||||
<property name="wrap">False</property>
|
<property name="focus_on_click">True</property>
|
||||||
<property name="selectable">False</property>
|
<property name="active">False</property>
|
||||||
<property name="xalign">0.5</property>
|
<property name="inconsistent">False</property>
|
||||||
<property name="yalign">0.5</property>
|
<property name="draw_indicator">True</property>
|
||||||
<property name="xpad">0</property>
|
|
||||||
<property name="ypad">0</property>
|
|
||||||
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
|
||||||
<property name="width_chars">-1</property>
|
|
||||||
<property name="single_line_mode">False</property>
|
|
||||||
<property name="angle">0</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="padding">0</property>
|
<property name="padding">0</property>
|
||||||
|
|
Loading…
Reference in New Issue