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:
authorlovetox <philipp@hoerist.com>2017-12-26 16:13:27 +0300
committerlovetox <philipp@hoerist.com>2017-12-26 16:14:38 +0300
commita0c8cb63ff75b4aebeec684c52d7dc269f3440c1 (patch)
tree7b73b612ce08f0b12dfddf5ce374f23e2193957f
parent614b6d43307427ad380de4e3152be57fa127caf7 (diff)
[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
-rw-r--r--appindicator_integration/plugin.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/appindicator_integration/plugin.py b/appindicator_integration/plugin.py
index 01fd67c..1135609 100644
--- a/appindicator_integration/plugin.py
+++ b/appindicator_integration/plugin.py
@@ -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)