]> spindle.queued.net Git - midori/commitdiff
Add gtk_image_menu_item_set_always_show_image to gtk3-compat.h
authorChristian Dywan <christian@twotoasts.de>
Tue, 8 Nov 2011 20:52:47 +0000 (21:52 +0100)
committerChristian Dywan <christian@twotoasts.de>
Tue, 8 Nov 2011 21:42:02 +0000 (22:42 +0100)
katze/gtk3-compat.h
katze/katze-arrayaction.c
midori/midori-searchaction.c
midori/midori-view.c

index 5858a731d2a818572a83ec75458496eb20a9fc43..2f058debe8b0c219ad5d0f67057c535e6d7c668a 100644 (file)
@@ -31,6 +31,7 @@ G_BEGIN_DECLS
     #define gtk_menu_item_set_label(menuitem, label) \
         gtk_label_set_label (GTK_LABEL (GTK_BIN (menuitem)->child), \
                              label ? label : "");
+    #define gtk_image_menu_item_set_always_show_image(menuitem, yesno) ()
 #endif
 
 #if !GTK_CHECK_VERSION (2, 18, 0)
index 1f9af0f52798824c731dcac2739b51423d33f698..c83844634bfd0be2f6e77714c368ec95a2c333dc 100644 (file)
@@ -398,10 +398,8 @@ 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 (menu, menuitem);
         g_object_set_data (G_OBJECT (menuitem), "KatzeItem", item);
         if (KATZE_ITEM_IS_FOLDER (item))
@@ -622,10 +620,8 @@ 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);
     if (KATZE_ITEM_IS_FOLDER (item))
     {
index bb87bab81930dbcb8eeacc045291cdb2e30e451e..687cb77fb8258ed04543b721a4c1cc2f10d366b4 100644 (file)
@@ -473,10 +473,8 @@ midori_search_action_icon_released_cb (GtkWidget*           entry,
                 gtk_image_set_from_icon_name (GTK_IMAGE (image), icon_name,
                                               GTK_ICON_SIZE_MENU);
             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), "engine", item);
             g_signal_connect (menuitem, "activate",
index 5f511947a6019e07b08881b485ef94ab35b98f07..21678c479600c4cea1ed307a0f7cc3c15036a9d0 100644 (file)
@@ -2450,10 +2450,8 @@ midori_view_populate_popup (MidoriView* view,
                 else
                     icon = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_MENU);
                 gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menuitem), icon);
-                #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_insert (GTK_MENU_SHELL (sub_menu), menuitem, i);
                 g_object_set_data (G_OBJECT (menuitem), "search",
                                    (gchar*)katze_item_get_uri (item));