[totem/gnome-2-30] Fix loading OSD icons when there's no SVG version
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/gnome-2-30] Fix loading OSD icons when there's no SVG version
- Date: Mon, 10 May 2010 01:33:36 +0000 (UTC)
commit d2b245e147d5c9343a579437ec71ecc037590b5d
Author: Bastien Nocera <hadess hadess net>
Date: Fri May 7 16:32:06 2010 +0100
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
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 9b8b36e..66761e0 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]