diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-12-21 17:37:16 +0000 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-12-21 17:37:16 +0000 |
commit | a004703346a865a716538bd4128c5613548618c0 (patch) | |
tree | 003699aaf5b914b225b8c1fc532c951e0ecabb2d | |
parent | a822c2aa28a91b8ca529760b041d7a11ab823daf (diff) | |
download | ayatana-indicator-sound-a004703346a865a716538bd4128c5613548618c0.tar.gz ayatana-indicator-sound-a004703346a865a716538bd4128c5613548618c0.tar.bz2 ayatana-indicator-sound-a004703346a865a716538bd4128c5613548618c0.zip |
icon colour change for banshee fixed bug #692648
-rw-r--r-- | src/title-widget.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/title-widget.c b/src/title-widget.c index cbdf28e..c3ef6a3 100644 --- a/src/title-widget.c +++ b/src/title-widget.c @@ -92,7 +92,8 @@ title_widget_set_icon(TitleWidget *self) GString* app_panel = g_string_new ( g_utf8_strdown ( dbusmenu_menuitem_property_get(priv->twin_item, DBUSMENU_TITLE_MENUITEM_NAME), -1 )); GtkWidget * icon = NULL; - + g_debug ("banshee icon name = %s", app_panel->str); + // Not ideal but apparently we want the banshee icon to be the greyscale one // and any others to be the icon from the desktop file => colour. if ( g_string_equal ( banshee_string, app_panel ) == TRUE && @@ -161,10 +162,7 @@ title_widget_property_update(DbusmenuMenuitem* item, gchar* property, else if(g_ascii_strcasecmp(DBUSMENU_TITLE_MENUITEM_ICON, property) == 0){ g_debug("changing the icon data on the title - %s", g_value_get_string(value)); - GtkWidget * icon = gtk_image_new_from_icon_name(g_value_get_string(value), - GTK_ICON_SIZE_MENU); - gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(mitem), GTK_WIDGET(icon)); - + title_widget_set_icon (mitem); } } |