closing #259
This commit is contained in:
parent
88f4449fbb
commit
a88696772a
2 changed files with 7 additions and 7 deletions
|
@ -653,10 +653,10 @@ class Popup_notification_window:
|
||||||
|
|
||||||
# set colors [ http://www.w3schools.com/html/html_colornames.asp ]
|
# set colors [ http://www.w3schools.com/html/html_colornames.asp ]
|
||||||
self.window.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('black'))
|
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'))
|
close_button.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('forestgreen'))
|
||||||
eventbox.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'))
|
close_button.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('firebrick'))
|
||||||
eventbox.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':
|
elif event_type == 'New Message':
|
||||||
|
|
10
src/gajim.py
10
src/gajim.py
|
@ -242,11 +242,11 @@ class Interface:
|
||||||
# check OUR status and if we allow notifications for that status
|
# check OUR status and if we allow notifications for that status
|
||||||
if gajim.config.get('autopopupaway'): # always notify
|
if gajim.config.get('autopopupaway'): # always notify
|
||||||
show_notification = True
|
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
|
show_notification = True
|
||||||
if show_notification:
|
if show_notification:
|
||||||
instance = dialogs.Popup_notification_window(self,
|
instance = dialogs.Popup_notification_window(self,
|
||||||
'Contact Online', jid, account)
|
'Contact signed in', jid, account)
|
||||||
self.roster.popup_notification_windows.append(instance)
|
self.roster.popup_notification_windows.append(instance)
|
||||||
|
|
||||||
elif old_show > 1 and new_show < 2:
|
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
|
# check OUR status and if we allow notifications for that status
|
||||||
if gajim.config.get('autopopupaway'): # always notify
|
if gajim.config.get('autopopupaway'): # always notify
|
||||||
show_notification = True
|
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
|
show_notification = True
|
||||||
if show_notification:
|
if show_notification:
|
||||||
instance = dialogs.Popup_notification_window(self,
|
instance = dialogs.Popup_notification_window(self,
|
||||||
'Contact Offline', jid, account)
|
'Contact signed out', jid, account)
|
||||||
self.roster.popup_notification_windows.append(instance)
|
self.roster.popup_notification_windows.append(instance)
|
||||||
|
|
||||||
elif self.windows[account]['gc'].has_key(ji):
|
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
|
# check OUR status and if we allow notifications for that status
|
||||||
if gajim.config.get('autopopupaway'): # always show notification
|
if gajim.config.get('autopopupaway'): # always show notification
|
||||||
show_notification = True
|
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
|
show_notification = True
|
||||||
if show_notification:
|
if show_notification:
|
||||||
instance = dialogs.Popup_notification_window(self,
|
instance = dialogs.Popup_notification_window(self,
|
||||||
|
|
Loading…
Add table
Reference in a new issue