Changeset 10145
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/config.py
r10138 r10145 1385 1385 status_before) 1386 1386 1387 def on_yes(checked): 1388 relog() 1389 def on_no(): 1390 if self.resend_presence: 1391 self.resend() 1387 1392 self.dialog = dialogs.YesNoDialog(_('Relogin now?'), 1388 1393 _('If you want all the changes to apply instantly, ' 1389 'you must relogin.')) 1390 resp = self.dialog.get_response() 1391 if resp == gtk.RESPONSE_YES: 1392 relog() 1393 elif self.resend_presence: 1394 self.resend() 1394 'you must relogin.'), on_response_yes=on_yes, on_response_no=on_no) 1395 1395 elif self.resend_presence: 1396 1396 self.resend() -
trunk/src/gajim.py
r10144 r10145 1856 1856 1857 1857 def handle_event_zc_name_conflict(self, account, data): 1858 dlg = dialogs.InputDialog(_('Username Conflict'), 1859 _('Please type a new username for your local account'), 1860 is_modal = True) 1861 dlg.input_entry.set_text(data) 1862 response = dlg.get_response() 1863 if response == gtk.RESPONSE_OK: 1864 new_name = dlg.input_entry.get_text() 1858 def on_ok(new_name): 1865 1859 gajim.config.set_per('accounts', account, 'name', new_name) 1866 1860 status = gajim.connections[account].status 1867 1861 gajim.connections[account].username = new_name 1868 1862 gajim.connections[account].change_status(status, '') 1869 else:1863 def on_cancel(): 1870 1864 gajim.connections[account].change_status('offline','') 1865 1866 dlg = dialogs.InputDialog(_('Username Conflict'), 1867 _('Please type a new username for your local account'), input_str=data, 1868 is_modal=True, ok_handler=on_ok, cancel_handler=on_cancel) 1871 1869 1872 1870 def handle_event_ping_sent(self, account, contact):
