Show
Ignore:
Timestamp:
01/06/07 12:00:50 (2 years ago)
Author:
asterix
Message:

merge changeset from trunk except pyopenssl stuff

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/gajim_0.11/src/gajim.py

    r7658 r7787  
    4545except RuntimeError, msg: 
    4646        if str(msg) == 'could not open display': 
    47                 print >> sys.stderr, _('Gajim needs Xserver to run. Quiting...') 
     47                print >> sys.stderr, _('Gajim needs X server to run. Quiting...') 
    4848                sys.exit() 
    4949pritext = '' 
     
    538538                                self.roster.draw_contact(ji, account) 
    539539                                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_) 
    540544                                # transport just signed in/out, don't show popup notifications 
    541545                                # for 30s 
     
    9971001                        ctrl.update_ui() 
    9981002                        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') 
    10011009                        ctrl.parent_win.redraw_tab(ctrl) 
    10021010                        if self.remote_ctrl: 
     
    11121120                                self.roster.remove_contact(c, account) 
    11131121                                gajim.contacts.remove_jid(account, jid) 
     1122                                self.roster.draw_account(account) 
    11141123                                if gajim.events.get_events(account, c.jid): 
    11151124                                        keyID = '' 
     
    19952004                if gajim.config.get('verbose'): 
    19962005                        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 
    19972011                #add default status messages if there is not in the config file 
    19982012                if len(gajim.config.get_per('statusmsg')) == 0: 
     
    20722086                        gajim.last_message_time[a] = {} 
    20732087                        gajim.status_before_autoaway[a] = '' 
     2088                        gajim.transport_avatar[a] = {} 
    20742089 
    20752090                self.roster = roster_window.RosterWindow() 
     
    21842199                                        cli.set_restart_command(len(argv), argv) 
    21852200                 
    2186                 gtkgui_helpers.possibly_set_gajim_as_xmpp_handler() 
    2187  
    21882201        check_paths.check_and_possibly_create_paths() 
    21892202