changeset 0cbc7effb351 in /home/hg/repos/gajim

author: Denis Fomin <fomi...@gmail.com>
branches: gtk3
details:http://hg.gajim.org/gajim?cmd=changeset;node=0cbc7effb351
description: Replacing Tune PEP icon. See #7445

diffstat:

 src/gtkgui_helpers.py |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r d757a97d271b -r 0cbc7effb351 src/gtkgui_helpers.py
--- a/src/gtkgui_helpers.py     Sun Sep 15 12:04:21 2013 +0200
+++ b/src/gtkgui_helpers.py     Sun Sep 08 21:58:54 2013 +0400
@@ -969,8 +969,12 @@
         pixbuf = load_mood_icon(mood).get_pixbuf()
         return pixbuf
     elif isinstance(pep_class, pep.UserTunePEP):
-        path = os.path.join(gajim.DATA_DIR, 'emoticons', 'static', 'music.png')
-        return GdkPixbuf.Pixbuf.new_from_file(path)
+        icon = gtkgui_helpers.get_icon_pixmap('audio-x-generic', quiet=True)
+        if not icon:
+            path = os.path.join(gajim.DATA_DIR, 'emoticons', 'static',
+                'music.png')
+            return GdkPixbuf.Pixbuf.new_from_file(path)
+        return icon
     elif isinstance(pep_class, pep.UserActivityPEP):
         assert not pep_class._retracted
         pep_ = pep_class._pep_specific_data
_______________________________________________
Commits mailing list
Commits@gajim.org
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to