diff options
author | Christian Dywan <christian@twotoasts.de> | 2009-07-25 23:06:17 +0200 |
---|---|---|
committer | Christian Dywan <christian@twotoasts.de> | 2009-07-25 23:06:17 +0200 |
commit | f16ba6571dbd6fb52e0b3d895d304d20f9ed7097 (patch) | |
tree | a7cac8eb1c986f8d2c8b4e58869e26f1cb82f509 /katze/katze-arrayaction.c | |
parent | 7a8db5543537d5052d3910f4c26d9cd5f9f7b03c (diff) | |
download | midori-f16ba6571dbd6fb52e0b3d895d304d20f9ed7097.tar.gz |
Enforce icons for webpage menu items and search menu items
Diffstat (limited to 'katze/katze-arrayaction.c')
-rw-r--r-- | katze/katze-arrayaction.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/katze/katze-arrayaction.c b/katze/katze-arrayaction.c index 96c25cb1..1fb6b925 100644 --- a/katze/katze-arrayaction.c +++ b/katze/katze-arrayaction.c @@ -307,6 +307,10 @@ katze_array_action_generate_menu (KatzeArrayAction* array_action, g_object_unref (icon); } gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menuitem), image); + #if GTK_CHECK_VERSION (2, 16, 0) + gtk_image_menu_item_set_always_show_image ( + GTK_IMAGE_MENU_ITEM (menuitem), TRUE); + #endif gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem); g_object_set_data (G_OBJECT (menuitem), "KatzeItem", item); if (KATZE_IS_ARRAY (item)) @@ -499,6 +503,10 @@ katze_array_action_proxy_create_menu_proxy_cb (GtkWidget* proxy, g_object_unref (icon); } gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menuitem), image); + #if GTK_CHECK_VERSION (2, 16, 0) + gtk_image_menu_item_set_always_show_image ( + GTK_IMAGE_MENU_ITEM (menuitem), TRUE); + #endif g_object_set_data (G_OBJECT (menuitem), "KatzeItem", item); g_signal_connect (menuitem, "button-press-event", G_CALLBACK (katze_array_action_menu_button_press_cb), array_action); |