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

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Fomin <fominde@gmail.com>2013-01-05 20:08:07 +0400
committerDenis Fomin <fominde@gmail.com>2013-01-05 20:08:07 +0400
commit98abd4f4d284675fab3064848f71decaafdc0c38 (patch)
treeb974038862444e7277ae15f61c5fb93da4dc0848 /src/notify.py
parent533e6b356e06112eefba370080396cfdf664b59b (diff)
fix exec commands and avatar in popups
Diffstat (limited to 'src/notify.py')
-rw-r--r--src/notify.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/notify.py b/src/notify.py
index 6979235dd..6153367a8 100644
--- a/src/notify.py
+++ b/src/notify.py
@@ -157,8 +157,10 @@ class Notification:
def _nec_notification(self, obj):
if obj.do_popup:
if isinstance(obj.popup_image, str):
- obj.popup_image = gtkgui_helpers.get_icon_path(obj.popup_image,
+ icon_path = gtkgui_helpers.get_icon_path(obj.popup_image,
48)
+ if icon_path:
+ obj.popup_image = icon_path
popup(obj.popup_event_type, obj.jid, obj.conn.name,
obj.popup_msg_type, path_to_image=obj.popup_image,
title=obj.popup_title, text=obj.popup_text,