Changeset 7787 for branches/gajim_0.11/src/gajim.py
- Timestamp:
- 01/06/07 12:00:50 (2 years ago)
- Files:
-
- 1 modified
-
branches/gajim_0.11/src/gajim.py (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/gajim_0.11/src/gajim.py
r7658 r7787 45 45 except RuntimeError, msg: 46 46 if str(msg) == 'could not open display': 47 print >> sys.stderr, _('Gajim needs X server to run. Quiting...')47 print >> sys.stderr, _('Gajim needs X server to run. Quiting...') 48 48 sys.exit() 49 49 pritext = '' … … 538 538 self.roster.draw_contact(ji, account) 539 539 self.roster.draw_group(_('Transports'), account) 540 if new_show > 1 and ji in gajim.transport_avatar[account]: 541 # transport just signed in. request avatars 542 for jid_ in gajim.transport_avatar[account][ji]: 543 gajim.connections[account].request_vcard(jid_) 540 544 # transport just signed in/out, don't show popup notifications 541 545 # for 30s … … 997 1001 ctrl.update_ui() 998 1002 uf_show = helpers.get_uf_show(show) 999 ctrl.print_conversation(_('%s is now %s (%s)') % (nick, uf_show, status), 1000 'status') 1003 if status: 1004 ctrl.print_conversation(_('%s is now %s (%s)') % (nick, uf_show, 1005 status), 'status') 1006 else: 1007 ctrl.print_conversation(_('%s is now %s') % (nick, uf_show), 1008 'status') 1001 1009 ctrl.parent_win.redraw_tab(ctrl) 1002 1010 if self.remote_ctrl: … … 1112 1120 self.roster.remove_contact(c, account) 1113 1121 gajim.contacts.remove_jid(account, jid) 1122 self.roster.draw_account(account) 1114 1123 if gajim.events.get_events(account, c.jid): 1115 1124 keyID = '' … … 1995 2004 if gajim.config.get('verbose'): 1996 2005 gajim.verbose = True 2006 2007 # Is Gajim default app? 2008 if os.name != 'nt' and gajim.config.get('check_if_gajim_is_default'): 2009 gtkgui_helpers.possibly_set_gajim_as_xmpp_handler() 2010 1997 2011 #add default status messages if there is not in the config file 1998 2012 if len(gajim.config.get_per('statusmsg')) == 0: … … 2072 2086 gajim.last_message_time[a] = {} 2073 2087 gajim.status_before_autoaway[a] = '' 2088 gajim.transport_avatar[a] = {} 2074 2089 2075 2090 self.roster = roster_window.RosterWindow() … … 2184 2199 cli.set_restart_command(len(argv), argv) 2185 2200 2186 gtkgui_helpers.possibly_set_gajim_as_xmpp_handler()2187 2188 2201 check_paths.check_and_possibly_create_paths() 2189 2202
