Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2004-05-25 05:18:56 +0400
committerYann Leboulanger <asterix@lagaule.org>2004-05-25 05:18:56 +0400
commitb819f1c9cfbfdcd84ecc5b12862372434381321a (patch)
tree61ee7e75a21f900b8c625b0019df0a0a508bbf1d /plugins
parentb5cf353af9452088b4087a774f81c8cc563f92c8 (diff)
change icon in message window only if all the connexions of the user (with differents resources) are off.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gtkgui/gtkgui.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/plugins/gtkgui/gtkgui.py b/plugins/gtkgui/gtkgui.py
index 68e273bd3..20f6da4c2 100644
--- a/plugins/gtkgui/gtkgui.py
+++ b/plugins/gtkgui/gtkgui.py
@@ -534,14 +534,19 @@ class roster_Window:
for i in iters:
if self.pixbufs.has_key(show):
model.set_value(i, 0, self.pixbufs[show])
- user.show = show
- user.status = status
+ for u in self.contacts[account][user.jid]:
+ u.show = show
+ u.status = status
#Print status in chat window
if self.plugin.windows[account]['chats'].has_key(user.jid):
- self.plugin.windows[account]['chats'][user.jid].\
- img.set_from_pixbuf(self.pixbufs[show])
+ if len(self.contacts[account][user.jid]) == 0:
+ self.plugin.windows[account]['chats'][user.jid].\
+ img.set_from_pixbuf(self.pixbufs[show])
+ name = user.name
+ if user.resource != '':
+ name += '/'+user.resource
self.plugin.windows[account]['chats'][user.jid].print_conversation(\
- _("%s is now %s (%s)") % (user.name, show, status), 'status')
+ _("%s is now %s (%s)") % (name, show, status), 'status')
def on_info(self, widget, user, account):
"""Call infoUser_Window class to display user's information"""