Change gc tab icon when we lose the room connection.

Thanks to Heather Gilmore, my wife, for grey-scaling the image. :-*
This commit is contained in:
Travis Shirk 2006-01-25 02:57:11 +00:00
parent a63132500b
commit 2b956ec93c
12 changed files with 5 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 807 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 807 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 807 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 807 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 807 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 807 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 807 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 807 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 807 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 807 B

View file

@ -269,8 +269,10 @@ class GroupchatControl(ChatControlBase):
if self.attention_flag and gajim.config.get('show_unread_tab_icon'): if self.attention_flag and gajim.config.get('show_unread_tab_icon'):
tab_image = img_16['message'] tab_image = img_16['message']
else: else:
if gajim.gc_connected[self.account][self.room_jid]:
tab_image = img_16['muc_active'] tab_image = img_16['muc_active']
else:
tab_image = img_16['muc_inactive']
return tab_image return tab_image
def update_ui(self): def update_ui(self):

View file

@ -2208,7 +2208,7 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
for state in ('connecting', 'online', 'chat', 'away', 'xa', for state in ('connecting', 'online', 'chat', 'away', 'xa',
'dnd', 'invisible', 'offline', 'error', 'requested', 'dnd', 'invisible', 'offline', 'error', 'requested',
'message', 'opened', 'closed', 'Not in Roster', 'message', 'opened', 'closed', 'Not in Roster',
'muc_active'): 'muc_active', 'muc_inactive'):
# try to open a pixfile with the correct method # try to open a pixfile with the correct method
state_file = state.replace(' ', '_') state_file = state.replace(' ', '_')