SOURCES: rhythmbox-use-icon-name.patch (NEW) - fix icon on notific...

baggins baggins at pld-linux.org
Wed May 17 17:47:55 CEST 2006


Author: baggins                      Date: Wed May 17 15:47:55 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fix icon on notification bubbles (from FC)

---- Files affected:
SOURCES:
   rhythmbox-use-icon-name.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/rhythmbox-use-icon-name.patch
diff -u /dev/null SOURCES/rhythmbox-use-icon-name.patch:1.1
--- /dev/null	Wed May 17 17:47:55 2006
+++ SOURCES/rhythmbox-use-icon-name.patch	Wed May 17 17:47:50 2006
@@ -0,0 +1,52 @@
+--- rhythmbox-0.9.3.1/widgets/eggtrayicon.c.use-icon-name	2006-03-08 01:17:43.000000000 -0500
++++ rhythmbox-0.9.3.1/widgets/eggtrayicon.c	2006-03-08 01:18:59.000000000 -0500
+@@ -563,35 +563,31 @@ egg_tray_icon_notify (EggTrayIcon *icon,
+       notify_notification_close (icon->notify->handle, NULL);
+     }
+ 
++  pixbuf = NULL;
++
+   esc_primary = g_markup_escape_text (primary, strlen (primary));
+   esc_secondary = g_markup_escape_text (secondary, strlen (secondary));
+-  icon->notify->handle = notify_notification_new (esc_primary,
+-                                                  esc_secondary,
+-                                                  NULL,
+-                                                  GTK_WIDGET (icon));
+-  g_free (esc_primary);
+-  g_free (esc_secondary);
+-
+-  notify_notification_set_timeout (icon->notify->handle, timeout);
+ 
+   if (msgicon) 
+     {
++      icon->notify->handle = notify_notification_new (esc_primary,
++                                                      esc_secondary,
++                                                      NULL,
++                                                      GTK_WIDGET (icon));
+       pixbuf = gtk_image_get_pixbuf (GTK_IMAGE (msgicon));
+     }
+   else
+     {
+-      GtkIconTheme *theme;
+-      gint icon_size;
+-
+-      theme = gtk_icon_theme_get_default ();
+-      gtk_icon_size_lookup (GTK_ICON_SIZE_DIALOG, &icon_size, NULL);
+-      pixbuf = gtk_icon_theme_load_icon (theme,
+-                                         "gnome-media-player",
+-                                         icon_size,
+-                                         0,
+-                                         NULL);
++      icon->notify->handle = notify_notification_new (esc_primary,
++                                                      esc_secondary,
++                                                      "gnome-media-player",
++                                                      GTK_WIDGET (icon));
+     }
+ 
++  notify_notification_set_timeout (icon->notify->handle, timeout);
++  g_free (esc_primary);
++  g_free (esc_secondary);
++
+   if (pixbuf)
+     {
+ #if (LIBNOTIFY_VERSION_MICRO < 2)
================================================================


More information about the pld-cvs-commit mailing list