Opened 7 years ago

Closed 7 years ago

#209 closed defect (fixed)

SVGZ application icons are not shown

Reported by: onlyjob Owned by: Antoine Martin
Priority: major Milestone:
Component: UI Keywords: patch
Cc:

Description

 [EE] 2012/09/08 23:34:28 icon_util.load_pixmap_file(/usr/share/icons/mono/scalable/apps/abiword.svgz,48)
  [ee] 2012/09/08 23:34:28 Traceback (most recent call last):
  [ee] 2012/09/08 23:34:28   File "/usr/lib/python2.7/dist-packages/winswitch/util/icon_util.py", line 71, in load_pixmap_file
  [ee] 2012/09/08 23:34:28     data = gtk_load_scaled_pixmap(filename, size_limit)
  [ee] 2012/09/08 23:34:28   File "/usr/lib/python2.7/dist-packages/winswitch/util/icon_util.py", line 38, in gtk_load_scaled_pixmap
  [ee] 2012/09/08 23:34:28     pixbuf = gtk.gdk.pixbuf_new_from_file(filename)
  [ee] 2012/09/08 23:34:28 GError: Couldn't recognize the image file format for file '/usr/share/icons/mono/scalable/apps/abiword.svgz'
  [EE] 2012/09/08 23:34:30 icon_util.load_pixmap_file(/usr/share/icons/mono/scalable/apps/synaptic.svgz,48)
  [ee] 2012/09/08 23:34:30 Traceback (most recent call last):
  [ee] 2012/09/08 23:34:30   File "/usr/lib/python2.7/dist-packages/winswitch/util/icon_util.py", line 71, in load_pixmap_file
  [ee] 2012/09/08 23:34:30     data = gtk_load_scaled_pixmap(filename, size_limit)
  [ee] 2012/09/08 23:34:30   File "/usr/lib/python2.7/dist-packages/winswitch/util/icon_util.py", line 38, in gtk_load_scaled_pixmap
  [ee] 2012/09/08 23:34:30     pixbuf = gtk.gdk.pixbuf_new_from_file(filename)
  [ee] 2012/09/08 23:34:30 GError: Couldn't recognize the image file format for file '/usr/share/icons/mono/scalable/apps/synaptic.svgz'

The problem can be fixed with the attached patch.

Attachments (1)

fix-svgz.patch (2.6 KB) - added by onlyjob 7 years ago.
patch

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by onlyjob

Attachment: fix-svgz.patch added

patch

comment:1 Changed 7 years ago by Antoine Martin

Owner: changed from Antoine Martin to Antoine Martin
Status: newaccepted

thanks, applied in r4931 - keeping this ticket open as I want to re-test on other platforms, especially on win32 which used to be very difficult in this area

comment:2 Changed 7 years ago by Antoine Martin

Resolution: fixed
Status: acceptedclosed

r4934 avoids errors when rsvg is not installed, tested on win32 without problems

Note: See TracTickets for help on using tickets.