From a88696772af17c60b800a1808b8df3c9a3fee451 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Wed, 11 May 2005 17:14:10 +0000 Subject: [PATCH] closing #259 --- src/dialogs.py | 4 ++-- src/gajim.py | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/dialogs.py b/src/dialogs.py index 3a551a69a..c0571475a 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -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': diff --git a/src/gajim.py b/src/gajim.py index 319f69bda..d0529cb24 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -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,