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

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Fomin <fominde@gmail.com>2010-10-13 21:05:50 +0400
committerDenis Fomin <fominde@gmail.com>2010-10-13 21:05:50 +0400
commit1c05fe1ccf5db090d0ec825df772c83f1cba9bde (patch)
tree6a5a8812d39d5d400725e6fd92ae70c497b5689f /clients_icons
parent1fabeef75ec82861e41b2342354e32059afde141 (diff)
clients_icons. small fix
Diffstat (limited to 'clients_icons')
-rw-r--r--clients_icons/clients_icons.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/clients_icons/clients_icons.py b/clients_icons/clients_icons.py
index 4a6ea2b..3fe8eb2 100644
--- a/clients_icons/clients_icons.py
+++ b/clients_icons/clients_icons.py
@@ -197,8 +197,9 @@ class ClientsIconsPlugin(GajimPlugin):
roster.model[iter_][self.renderer_num] = self.default_pixbuf
continue
client_icon = clients.get(caps.split('#')[0], None)
- if not client_icon and self.config['show_unknown_icon']:
- roster.model[iter_][self.renderer_num] = self.default_pixbuf
+ if not client_icon:
+ if self.config['show_unknown_icon']:
+ roster.model[iter_][self.renderer_num] = self.default_pixbuf
continue
icon_path = os.path.join(self.local_file_path('icons'), client_icon)
pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(icon_path, 16, 16)
@@ -229,8 +230,9 @@ class ClientsIconsPlugin(GajimPlugin):
model[iter_][self.muc_renderer_num] = self.default_pixbuf
return
client_icon = clients.get(caps.split('#')[0], None)
- if not client_icon and self.config['show_unknown_icon']:
- model[iter_][self.muc_renderer_num] = self.default_pixbuf
+ if not client_icon:
+ if self.config['show_unknown_icon']:
+ model[iter_][self.muc_renderer_num] = self.default_pixbuf
else:
icon_path = os.path.join(self.local_file_path('icons'),
client_icon)