Changeset 10145 for trunk/src/gajim.py
- Timestamp:
- 08/07/08 17:51:23 (4 months ago)
- Files:
-
- 1 modified
-
trunk/src/gajim.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
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):
