@@ -182,15 +182,7 @@ class AppindicatorIntegrationPlugin(GajimPlugin):
|
|||||||
|
|
||||||
event.time = when
|
event.time = when
|
||||||
if key not in self.events:
|
if key not in self.events:
|
||||||
icon = None
|
item = Gtk.MenuItem(label=contact + " (1)")
|
||||||
if app.config.get("show_avatars_in_roster"):
|
|
||||||
pix = app.contacts.get_avatar(account, jid, size=16)
|
|
||||||
icon = Gtk.Image()
|
|
||||||
icon.set_from_pixbuf(pix)
|
|
||||||
item = Gtk.ImageMenuItem(contact + " (1)")
|
|
||||||
if icon:
|
|
||||||
item.set_image(icon)
|
|
||||||
item.set_always_show_image(True)
|
|
||||||
item.connect("activate", self.event_raise, event)
|
item.connect("activate", self.event_raise, event)
|
||||||
item.show()
|
item.show()
|
||||||
self.menu.insert(item, self.menuEventInsertIndex)
|
self.menu.insert(item, self.menuEventInsertIndex)
|
||||||
|
|||||||
Reference in New Issue
Block a user