From dc8e8891e77c5f289c078bc9fc7d37f8903fc7e0 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Mon, 27 Oct 2008 03:01:52 +0100 Subject: [PATCH] Correct a missing differentiation between proxy widgets --- katze/katze-arrayaction.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/katze/katze-arrayaction.c b/katze/katze-arrayaction.c index cc5f45f1..b06c41a6 100644 --- a/katze/katze-arrayaction.c +++ b/katze/katze-arrayaction.c @@ -214,11 +214,16 @@ katze_array_action_menu_item_activate_cb (GtkWidget* proxy, static void katze_array_action_icon_cb (GdkPixbuf* icon, - GtkWidget* menuitem) + GtkWidget* widget) { GtkWidget* image = gtk_image_new_from_pixbuf (icon); - gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menuitem), image); - g_object_unref (menuitem); + g_object_unref (icon); + gtk_widget_show (image); + if (GTK_IS_IMAGE_MENU_ITEM (widget)) + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (widget), image); + else + gtk_tool_button_set_icon_widget (GTK_TOOL_BUTTON (widget), image); + g_object_unref (widget); } static void -- 2.39.5