r12188 - /packages/unstable/gnome-app-install/debian/patches/01_fixicons.patch
jak-guest at users.alioth.debian.org
jak-guest at users.alioth.debian.org
Wed Aug 1 18:44:05 UTC 2007
Author: jak-guest
Date: Wed Aug 1 18:44:05 2007
New Revision: 12188
URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=12188
Log:
* debian/patches/01_fixicons.patch: commit
Added:
packages/unstable/gnome-app-install/debian/patches/01_fixicons.patch
Added: packages/unstable/gnome-app-install/debian/patches/01_fixicons.patch
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/unstable/gnome-app-install/debian/patches/01_fixicons.patch?rev=12188&op=file
==============================================================================
--- packages/unstable/gnome-app-install/debian/patches/01_fixicons.patch (added)
+++ packages/unstable/gnome-app-install/debian/patches/01_fixicons.patch Wed Aug 1 18:44:05 2007
@@ -1,0 +1,14 @@
+=== modified file 'AppInstall/CoreMenu.py'
+--- old/AppInstall/CoreMenu.py 2007-07-25 20:30:18 +0000
++++ new/AppInstall/CoreMenu.py 2007-08-01 16:07:42 +0000
+@@ -102,6 +102,9 @@
+ item.replaces = replaces
+ # Icon
+ item.iconname = entry.DesktopEntry.get("X-AppInstall-Icon", "") or entry.DesktopEntry.getIcon() or "applications-other"
++
++ if item.iconname.endswith(".png") or item.iconname.endswith(".xpm") or item.iconname.endswith(".svg"):
++ item.iconname = item.iconname[:-4]
+ item.mime = entry.DesktopEntry.get('MimeType', list=True)
+ item.codecs = entry.DesktopEntry.get("X-AppInstall-Codecs").split(';')
+ item.patentBadness = entry.DesktopEntry.get("X-AppInstall-PatentBadness", type='boolean')
+
More information about the pkg-gnome-commits
mailing list