diff --git a/src/fe-gtk/chanlist.c b/src/fe-gtk/chanlist.c index 7f7648ac..946fea57 100644 --- a/src/fe-gtk/chanlist.c +++ b/src/fe-gtk/chanlist.c @@ -142,7 +142,8 @@ chanlist_icon_menu_item (const char *label, const char *icon_name, gtk_box_pack_start (GTK_BOX (box), image, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (box), label_widget, FALSE, FALSE, 0); gtk_container_add (GTK_CONTAINER (item), box); -#else +#endif +#if !HAVE_GTK3 GtkWidget *image; item = gtk_image_menu_item_new_with_mnemonic (label); diff --git a/src/fe-gtk/menu.c b/src/fe-gtk/menu.c index 118ee2f8..71b174f4 100644 --- a/src/fe-gtk/menu.c +++ b/src/fe-gtk/menu.c @@ -298,7 +298,8 @@ menu_quick_item (char *cmd, char *label, GtkWidget * menu, int flags, #if HAVE_GTK3 icon_name = gtkutil_icon_name_from_stock (icon); img = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_MENU); -#else +#endif +#if !HAVE_GTK3 img = gtk_image_new_from_stock (icon, GTK_ICON_SIZE_MENU); #endif } @@ -313,7 +314,8 @@ menu_quick_item (char *cmd, char *label, GtkWidget * menu, int flags, gtk_box_pack_start (GTK_BOX (box), img, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (box), label_widget, FALSE, FALSE, 0); gtk_container_add (GTK_CONTAINER (item), box); -#else +#endif +#if !HAVE_GTK3 item = gtk_image_menu_item_new_with_mnemonic (label); if (img) gtk_image_menu_item_set_image ((GtkImageMenuItem *)item, img); diff --git a/src/fe-gtk/sexy-spell-entry.c b/src/fe-gtk/sexy-spell-entry.c index c986f979..8ee7ef16 100644 --- a/src/fe-gtk/sexy-spell-entry.c +++ b/src/fe-gtk/sexy-spell-entry.c @@ -648,7 +648,8 @@ sexy_spell_entry_icon_menu_item (const char *label, const char *stock_name) gtk_box_pack_start (GTK_BOX (box), image, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (box), label_widget, FALSE, FALSE, 0); gtk_container_add (GTK_CONTAINER (item), box); -#else +#endif +#if !HAVE_GTK3 GtkWidget *image; item = gtk_image_menu_item_new_with_label (label);