clients_icons. small fix
This commit is contained in:
@@ -197,8 +197,9 @@ class ClientsIconsPlugin(GajimPlugin):
|
|||||||
roster.model[iter_][self.renderer_num] = self.default_pixbuf
|
roster.model[iter_][self.renderer_num] = self.default_pixbuf
|
||||||
continue
|
continue
|
||||||
client_icon = clients.get(caps.split('#')[0], None)
|
client_icon = clients.get(caps.split('#')[0], None)
|
||||||
if not client_icon and self.config['show_unknown_icon']:
|
if not client_icon:
|
||||||
roster.model[iter_][self.renderer_num] = self.default_pixbuf
|
if self.config['show_unknown_icon']:
|
||||||
|
roster.model[iter_][self.renderer_num] = self.default_pixbuf
|
||||||
continue
|
continue
|
||||||
icon_path = os.path.join(self.local_file_path('icons'), client_icon)
|
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)
|
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
|
model[iter_][self.muc_renderer_num] = self.default_pixbuf
|
||||||
return
|
return
|
||||||
client_icon = clients.get(caps.split('#')[0], None)
|
client_icon = clients.get(caps.split('#')[0], None)
|
||||||
if not client_icon and self.config['show_unknown_icon']:
|
if not client_icon:
|
||||||
model[iter_][self.muc_renderer_num] = self.default_pixbuf
|
if self.config['show_unknown_icon']:
|
||||||
|
model[iter_][self.muc_renderer_num] = self.default_pixbuf
|
||||||
else:
|
else:
|
||||||
icon_path = os.path.join(self.local_file_path('icons'),
|
icon_path = os.path.join(self.local_file_path('icons'),
|
||||||
client_icon)
|
client_icon)
|
||||||
|
|||||||
Reference in New Issue
Block a user