From e3b478e1706c0fe0369ae12130257f1c109a3c8a Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Sun, 17 Apr 2005 17:55:06 +0000 Subject: [PATCH] allow or not notifications when dnd/away now works --- src/gtkgui.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/gtkgui.py b/src/gtkgui.py index f64812493..7903f816a 100644 --- a/src/gtkgui.py +++ b/src/gtkgui.py @@ -319,7 +319,8 @@ class interface: self.play_sound('contact_connected') if not self.windows[account]['chats'].has_key(jid) and \ not self.queues[account].has_key(jid) and \ - gajim.config.get('notify_on_online'): + gajim.config.get('notify_on_online') and \ + gajim.config.get('autopopupaway'): instance = dialogs.Popup_window(self, 'Contact Online', jid, \ account) self.roster.popup_windows.append(instance) @@ -328,7 +329,8 @@ class interface: self.play_sound('contact_disconnected') if not self.windows[account]['chats'].has_key(jid) and \ not self.queues[account].has_key(jid) and \ - gajim.config.get('notify_on_offline'): + gajim.config.get('notify_on_offline') and \ + gajim.config.get('autopopupaway'): instance = dialogs.Popup_window(self, 'Contact Offline', jid, \ account) self.roster.popup_windows.append(instance) @@ -352,7 +354,8 @@ class interface: if not self.windows[account]['chats'].has_key(jid) and \ not self.queues[account].has_key(jid): first = True - if gajim.config.get('notify_on_new_message'): + if gajim.config.get('notify_on_new_message') and \ + gajim.config.get('autopopupaway'): instance = dialogs.Popup_window(self, 'New Message', jid, account) self.roster.popup_windows.append(instance) self.roster.on_message(jid, array[1], array[2], account)