diff options
author | Bastien Nocera <hadess@hadess.net> | 2010-05-07 16:32:06 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2010-05-10 02:22:03 +0100 |
commit | d2b245e147d5c9343a579437ec71ecc037590b5d (patch) | |
tree | 78f0c2a0c7b68ce23bfdf6375afc04fe1a434a30 | |
parent | aeeb165117a80080b044d54d5dc8b64df3128c26 (diff) | |
download | totem-d2b245e147d5c9343a579437ec71ecc037590b5d.tar.gz |
Fix loading OSD icons when there's no SVG version
In gnome-icon-theme in 2.30.x, there's no SVG icons anymore,
so the OSD popups won't look like the rest of the system,
as "hand-drawn" icons will be used instead.
https://bugzilla.gnome.org/show_bug.cgi?id=618023
-rw-r--r-- | src/gsd-media-keys-window.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/gsd-media-keys-window.c b/src/gsd-media-keys-window.c index 9b8b36e79..66761e0e0 100644 --- a/src/gsd-media-keys-window.c +++ b/src/gsd-media-keys-window.c @@ -357,22 +357,9 @@ load_pixbuf (GsdMediaKeysWindow *window, pixbuf = gtk_icon_theme_load_icon (theme, name, icon_size, - GTK_ICON_LOOKUP_FORCE_SVG, + GTK_ICON_LOOKUP_FORCE_SIZE, NULL); - /* make sure the pixbuf is close to the requested size - * this is necessary because GTK_ICON_LOOKUP_FORCE_SVG - * seems to be broken */ - if (pixbuf != NULL) { - int width; - - width = gdk_pixbuf_get_width (pixbuf); - if (width < (float)icon_size * 0.75) { - g_object_unref (pixbuf); - pixbuf = NULL; - } - } - return pixbuf; } |