[file-roller] gear menu: use the old icon if using gtk+ 3.12



commit e461aec5a9d2b05739528dbbba2caabd03e5f394
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Mon Jul 21 18:53:52 2014 +0200

    gear menu: use the old icon if using gtk+ 3.12

 src/fr-window.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/fr-window.c b/src/fr-window.c
index 1775845..45fb203 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -5614,7 +5614,11 @@ fr_window_construct (FrWindow *window)
                 menu = G_MENU_MODEL (gtk_builder_get_object (builder, "menu"));
                 button = _gtk_menu_button_new_for_header_bar ();
                 gtk_size_group_add_widget (header_bar_size_group, button);
+#if ! GTK_CHECK_VERSION(3,13,0)
+               gtk_container_add (GTK_CONTAINER (button), gtk_image_new_from_icon_name 
("emblem-system-symbolic", GTK_ICON_SIZE_MENU));
+#else
                 gtk_menu_button_set_direction (GTK_MENU_BUTTON (button), GTK_ARROW_NONE);
+#endif
                 gtk_menu_button_set_menu_model (GTK_MENU_BUTTON (button), menu);
                 gtk_widget_show_all (button);
                 gtk_header_bar_pack_end (GTK_HEADER_BAR (window->priv->headerbar), button);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]