Show
Ignore:
Timestamp:
11/09/07 20:30:15 (13 months ago)
Author:
asterix
Message:

merge some fixes from trunk: [8864] [8866] [8881] [8884] [8887] [8894] [8895] [8902] [8903] [8904] [8905] [8906] [8910] [8918] [8919] [8921] [8923] [8924] [8938] [8942] [8952] [8953] [8954]

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/gajim_0.11.2/src/systray.py

    r7510 r8955  
    317317                        'CHANGE_STATUS_MSG_MENUITEM', 'SEPARATOR', 'offline'] 
    318318                index = l.index(show) 
    319                 gajim.interface.roster.status_combobox.set_active(index) 
     319                current = gajim.interface.roster.status_combobox.get_active() 
     320                if index != current: 
     321                        gajim.interface.roster.status_combobox.set_active(index) 
     322                else: 
     323                        # We maybe need to emit the changed signal if all globaly sync'ed 
     324                        # account don't have the global status 
     325                        need_to_change = False 
     326                        accounts = gajim.connections.keys() 
     327                        for acct in accounts: 
     328                                if not gajim.config.get_per('accounts', acct, 
     329                                'sync_with_global_status'): 
     330                                        continue 
     331                                acct_show = gajim.SHOW_LIST[gajim.connections[acct].connected] 
     332                                if acct_show != show: 
     333                                        need_to_change = True 
     334                                        break 
     335                        if need_to_change: 
     336                                gajim.interface.roster.status_combobox.emit('changed') 
    320337 
    321338        def on_change_status_message_activate(self, widget):