Commit a0c8cb63 authored by Philipp Hörist's avatar Philipp Hörist

[appindicator] Fix showing notifications

get_path_to_generic_or_avatar() is not available anymore in
gtkgui_helpers, its enough to load avatars from cache

Fixes #241, #251
parent 614b6d43
......@@ -186,13 +186,6 @@ class AppindicatorIntegrationPlugin(GajimPlugin):
if pixbuf not in (None, "ask"):
icon = gtk.Image()
icon.set_from_pixbuf(pixbuf)
else:
file_path = gtkgui_helpers.get_path_to_generic_or_avatar(jid)
if os.path.isfile(file_path):
fd = fopen(file_path, 'rb')
data = fd.read()
icon = gtk.Image()
icon.set_from_pixbuf(gtkgui_helpers.get_pixbuf_from_data(data))
item = gtk.ImageMenuItem(contact + " (1)")
if icon:
item.set_image(icon)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment