This commit is contained in:
Nikos Kouremenos 2005-05-11 17:14:10 +00:00
parent 88f4449fbb
commit a88696772a
2 changed files with 7 additions and 7 deletions

View File

@ -653,10 +653,10 @@ class Popup_notification_window:
# set colors [ http://www.w3schools.com/html/html_colornames.asp ]
self.window.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('black'))
if event_type == 'Contact Online':
if event_type == 'Contact signed in':
close_button.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('forestgreen'))
eventbox.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('forestgreen'))
elif event_type == 'Contact Offline':
elif event_type == 'Contact signed out':
close_button.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('firebrick'))
eventbox.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('firebrick'))
elif event_type == 'New Message':

View File

@ -242,11 +242,11 @@ class Interface:
# check OUR status and if we allow notifications for that status
if gajim.config.get('autopopupaway'): # always notify
show_notification = True
elif gajim.connections[account].connected in (2, 3): #online or chat
elif gajim.connections[account].connected in (2, 3): # we're online or chat
show_notification = True
if show_notification:
instance = dialogs.Popup_notification_window(self,
'Contact Online', jid, account)
'Contact signed in', jid, account)
self.roster.popup_notification_windows.append(instance)
elif old_show > 1 and new_show < 2:
@ -260,11 +260,11 @@ class Interface:
# check OUR status and if we allow notifications for that status
if gajim.config.get('autopopupaway'): # always notify
show_notification = True
elif gajim.connections[account].connected in (2, 3): #online or chat
elif gajim.connections[account].connected in (2, 3): # we're online or chat
show_notification = True
if show_notification:
instance = dialogs.Popup_notification_window(self,
'Contact Offline', jid, account)
'Contact signed out', jid, account)
self.roster.popup_notification_windows.append(instance)
elif self.windows[account]['gc'].has_key(ji):
@ -291,7 +291,7 @@ class Interface:
# check OUR status and if we allow notifications for that status
if gajim.config.get('autopopupaway'): # always show notification
show_notification = True
elif gajim.connections[account].connected in (2, 3): #online or chat
elif gajim.connections[account].connected in (2, 3): # we're online or chat
show_notification = True
if show_notification:
instance = dialogs.Popup_notification_window(self,