Author: roidelapluie
Date: 2007-07-13 12:11:49 +0200 (Fri, 13 Jul 2007)
New Revision: 8393
Added:
trunk/data/iconsets/crystal/16x16/event.gif
trunk/data/iconsets/dcraven/16x16/event.png
trunk/data/iconsets/dcraven/32x32/event.png
trunk/data/iconsets/gnome/16x16/event.gif
trunk/data/iconsets/goojim/16x16/event.png
trunk/data/iconsets/goojim/32x32/event.png
trunk/data/iconsets/gossip/16x16/event.png
trunk/data/iconsets/gota/16x16/event.gif
trunk/data/iconsets/gota/32x32/event.gif
trunk/data/iconsets/jabberbulb/16x16/event.gif
trunk/data/iconsets/nuvola/16x16/event.gif
trunk/data/iconsets/simplebulb/16x16/event.png
trunk/data/iconsets/stellar/16x16/event.gif
trunk/data/iconsets/sun/16x16/event.gif
Removed:
trunk/data/iconsets/crystal/16x16/message.gif
trunk/data/iconsets/dcraven/16x16/message.png
trunk/data/iconsets/dcraven/32x32/message.png
trunk/data/iconsets/gnome/16x16/message.gif
trunk/data/iconsets/goojim/16x16/message.png
trunk/data/iconsets/goojim/32x32/message.png
trunk/data/iconsets/gossip/16x16/message.png
trunk/data/iconsets/gota/16x16/message.gif
trunk/data/iconsets/gota/32x32/message.gif
trunk/data/iconsets/jabberbulb/16x16/message.gif
trunk/data/iconsets/nuvola/16x16/message.gif
trunk/data/iconsets/simplebulb/16x16/message.png
trunk/data/iconsets/stellar/16x16/message.gif
trunk/data/iconsets/sun/16x16/message.gif
Modified:
trunk/src/chat_control.py
trunk/src/common/helpers.py
trunk/src/groupchat_control.py
trunk/src/roster_window.py
trunk/src/statusicon.py
trunk/src/systray.py
Log:
[Lukas and I] use 'event' instead of 'message' as icons names ans
states. Fix #2755.
Copied: trunk/data/iconsets/crystal/16x16/event.gif (from rev 8392, trunk/data/iconsets/crystal/16x16/message.gif)
===================================================================
(Binary files differ)
Deleted: trunk/data/iconsets/crystal/16x16/message.gif
===================================================================
(Binary files differ)
Copied: trunk/data/iconsets/dcraven/16x16/event.png (from rev 8392, trunk/data/iconsets/dcraven/16x16/message.png)
===================================================================
(Binary files differ)
Deleted: trunk/data/iconsets/dcraven/16x16/message.png
===================================================================
(Binary files differ)
Copied: trunk/data/iconsets/dcraven/32x32/event.png (from rev 8392, trunk/data/iconsets/dcraven/32x32/message.png)
===================================================================
(Binary files differ)
Deleted: trunk/data/iconsets/dcraven/32x32/message.png
===================================================================
(Binary files differ)
Copied: trunk/data/iconsets/gnome/16x16/event.gif (from rev 8392, trunk/data/iconsets/gnome/16x16/message.gif)
===================================================================
(Binary files differ)
Deleted: trunk/data/iconsets/gnome/16x16/message.gif
===================================================================
(Binary files differ)
Copied: trunk/data/iconsets/goojim/16x16/event.png (from rev 8392, trunk/data/iconsets/goojim/16x16/message.png)
===================================================================
(Binary files differ)
Deleted: trunk/data/iconsets/goojim/16x16/message.png
===================================================================
(Binary files differ)
Copied: trunk/data/iconsets/goojim/32x32/event.png (from rev 8392, trunk/data/iconsets/goojim/32x32/message.png)
===================================================================
(Binary files differ)
Deleted: trunk/data/iconsets/goojim/32x32/message.png
===================================================================
(Binary files differ)
Copied: trunk/data/iconsets/gossip/16x16/event.png (from rev 8392, trunk/data/iconsets/gossip/16x16/message.png)
===================================================================
(Binary files differ)
Deleted: trunk/data/iconsets/gossip/16x16/message.png
===================================================================
(Binary files differ)
Copied: trunk/data/iconsets/gota/16x16/event.gif (from rev 8392, trunk/data/iconsets/gota/16x16/message.gif)
===================================================================
(Binary files differ)
Deleted: trunk/data/iconsets/gota/16x16/message.gif
===================================================================
(Binary files differ)
Copied: trunk/data/iconsets/gota/32x32/event.gif (from rev 8392, trunk/data/iconsets/gota/32x32/message.gif)
===================================================================
(Binary files differ)
Deleted: trunk/data/iconsets/gota/32x32/message.gif
===================================================================
(Binary files differ)
Copied: trunk/data/iconsets/jabberbulb/16x16/event.gif (from rev 8392, trunk/data/iconsets/jabberbulb/16x16/message.gif)
===================================================================
(Binary files differ)
Deleted: trunk/data/iconsets/jabberbulb/16x16/message.gif
===================================================================
(Binary files differ)
Copied: trunk/data/iconsets/nuvola/16x16/event.gif (from rev 8392, trunk/data/iconsets/nuvola/16x16/message.gif)
===================================================================
(Binary files differ)
Deleted: trunk/data/iconsets/nuvola/16x16/message.gif
===================================================================
(Binary files differ)
Copied: trunk/data/iconsets/simplebulb/16x16/event.png (from rev 8392, trunk/data/iconsets/simplebulb/16x16/message.png)
===================================================================
(Binary files differ)
Deleted: trunk/data/iconsets/simplebulb/16x16/message.png
===================================================================
(Binary files differ)
Copied: trunk/data/iconsets/stellar/16x16/event.gif (from rev 8392, trunk/data/iconsets/stellar/16x16/message.gif)
===================================================================
(Binary files differ)
Deleted: trunk/data/iconsets/stellar/16x16/message.gif
===================================================================
(Binary files differ)
Copied: trunk/data/iconsets/sun/16x16/event.gif (from rev 8392, trunk/data/iconsets/sun/16x16/message.gif)
===================================================================
(Binary files differ)
Deleted: trunk/data/iconsets/sun/16x16/message.gif
===================================================================
(Binary files differ)
Modified: trunk/src/chat_control.py
===================================================================
--- trunk/src/chat_control.py 2007-07-12 22:19:21 UTC (rev 8392)
+++ trunk/src/chat_control.py 2007-07-13 10:11:49 UTC (rev 8393)
@@ -1457,13 +1457,13 @@
jid = self.contact.jid
num_unread = len(gajim.events.get_events(self.account, jid,
['printed_' + self.type_id, self.type_id]))
- # Set tab image (always 16x16); unread messages show the 'message' image
+ # Set tab image (always 16x16); unread messages show the 'event' image
tab_img = None
if num_unread and gajim.config.get('show_unread_tab_icon'):
img_16 = gajim.interface.roster.get_appropriate_state_images(
- self.contact.jid, icon_name = 'message')
- tab_img = img_16['message']
+ self.contact.jid, icon_name = 'event')
+ tab_img = img_16['event']
else:
contact = gajim.contacts.get_contact_with_highest_priority(
self.account, self.contact.jid)
Modified: trunk/src/common/helpers.py
===================================================================
--- trunk/src/common/helpers.py 2007-07-12 22:19:21 UTC (rev 8392)
+++ trunk/src/common/helpers.py 2007-07-13 10:11:49 UTC (rev 8393)
@@ -547,14 +547,14 @@
def get_icon_name_to_show(contact, account = None):
'''Get the icon name to show in online, away, requested, ...'''
if account and gajim.events.get_nb_roster_events(account, contact.jid):
- return 'message'
+ return 'event'
if account and gajim.events.get_nb_roster_events(account,
contact.get_full_jid()):
- return 'message'
+ return 'event'
if account and gajim.interface.minimized_controls.has_key(account) and \
contact.jid in gajim.interface.minimized_controls[account] and gajim.interface.\
minimized_controls[account][contact.jid].get_nb_unread_pm() > 0:
- return 'message'
+ return 'event'
if account and gajim.gc_connected[account].has_key(contact.jid):
if gajim.gc_connected[account][contact.jid]:
return 'muc_active'
Modified: trunk/src/groupchat_control.py
===================================================================
--- trunk/src/groupchat_control.py 2007-07-12 22:19:21 UTC (rev 8392)
+++ trunk/src/groupchat_control.py 2007-07-13 10:11:49 UTC (rev 8393)
@@ -10,6 +10,7 @@
## Copyright (C) 2006 Travis Shirk <travis(a)pobox.com>
## Copyright (C) 2005-2007 Nikos Kouremenos <kourem(a)gmail.com>
## Copyright (C) 2007 Julien Pivotto <roidelapluie(a)gmail.com>
+## Copyright (C) 2007 Lukas Petrovicky <lukas(a)petrovicky.net>
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published
@@ -552,8 +553,8 @@
model = self.list_treeview.get_model()
state_images =\
gajim.interface.roster.get_appropriate_state_images(
- self.room_jid, icon_name = 'message')
- image = state_images['message']
+ self.room_jid, icon_name = 'event')
+ image = state_images['event']
model[iter][C_IMG] = image
if self.parent_win:
self.parent_win.show_title()
@@ -836,7 +837,7 @@
nick)
state_images = gajim.interface.roster.jabber_state_images['16']
if len(gajim.events.get_events(self.account, self.room_jid + '/' + nick)):
- image = state_images['message']
+ image = state_images['event']
else:
image = state_images[gc_contact.show]
Modified: trunk/src/roster_window.py
===================================================================
--- trunk/src/roster_window.py 2007-07-12 22:19:21 UTC (rev 8392)
+++ trunk/src/roster_window.py 2007-07-13 10:11:49 UTC (rev 8393)
@@ -677,13 +677,13 @@
# look if another resource has awaiting events
for c in contact_instances:
c_icon_name = helpers.get_icon_name_to_show(c, account)
- if c_icon_name in ('message', 'muc_active', 'muc_inactive'):
+ if c_icon_name in ('event', 'muc_active', 'muc_inactive'):
icon_name = c_icon_name
break
path = model.get_path(iter)
if model.iter_has_child(iter):
if not self.tree.row_expanded(path) and \
- icon_name not in ('message', 'muc_active', 'muc_inactive'):
+ icon_name not in ('event', 'muc_active', 'muc_inactive'):
child_iter = model.iter_children(iter)
if icon_name in ('error', 'offline'):
# get the icon from the first child as they are sorted by show
@@ -700,7 +700,7 @@
child_jid = model[child_iter][C_JID].decode('utf-8')
child_account = model[child_iter][C_ACCOUNT].decode('utf-8')
if len(gajim.events.get_events(child_account, child_jid)):
- icon_name = 'message'
+ icon_name = 'event'
break
child_iter = model.iter_next(child_iter)
if self.tree.row_expanded(path):
@@ -4292,11 +4292,11 @@
'not in roster')
else:
list = ('connecting', 'online', 'chat', 'away', 'xa', 'dnd',
- 'invisible', 'offline', 'error', 'requested', 'message', 'opened',
+ 'invisible', 'offline', 'error', 'requested', 'event', 'opened',
'closed', 'not in roster', 'muc_active', 'muc_inactive')
if pixbuf2:
list = ('connecting', 'online', 'chat', 'away', 'xa', 'dnd',
- 'offline', 'error', 'requested', 'message', 'not in roster')
+ 'offline', 'error', 'requested', 'event', 'not in roster')
return self._load_icon_list(list, path, pixbuf2)
def load_icon(self, icon_name):
Modified: trunk/src/statusicon.py
===================================================================
--- trunk/src/statusicon.py 2007-07-12 22:19:21 UTC (rev 8392)
+++ trunk/src/statusicon.py 2007-07-13 10:11:49 UTC (rev 8393)
@@ -1,6 +1,7 @@
## statusicon.py
##
## Copyright (C) 2006 Nikos Kouremenos <kourem(a)gmail.com>
+## Copyright (C) 2007 Lukas Petrovicky <lukas(a)petrovicky.net>
##
## This program is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License
@@ -56,7 +57,7 @@
text = helpers.get_notification_icon_tooltip_text()
self.status_icon.set_tooltip(text)
if gajim.events.get_nb_systray_events():
- state = 'message' # FIXME: this state should be called event, not message
+ state = 'event'
self.status_icon.props.blinking = True
else:
state = self.status
Modified: trunk/src/systray.py
===================================================================
--- trunk/src/systray.py 2007-07-12 22:19:21 UTC (rev 8392)
+++ trunk/src/systray.py 2007-07-13 10:11:49 UTC (rev 8393)
@@ -6,6 +6,7 @@
## Copyright (C) 2005 Dimitur Kirov <dkirov(a)gmail.com>
## Copyright (C) 2005-2006 Travis Shirk <travis(a)pobox.com>
## Copyright (C) 2005 Norman Rasmussen <norman(a)rasmussen.co.za>
+## Copyright (C) 2007 Lukas Petrovicky <lukas(a)petrovicky.net>
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published
@@ -82,7 +83,7 @@
if not gajim.interface.systray_enabled:
return
if gajim.events.get_nb_systray_events():
- state = 'message'
+ state = 'event'
else:
state = self.status
image = gajim.interface.roster.jabber_state_images['16'][state]