[file-roller] headerbar: use the old order when compiled with gtk+ 3.10



commit 91db6c63c4b5123836d714c316d154b718528bc2
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Wed Jan 8 10:01:08 2014 +0100

    headerbar: use the old order when compiled with gtk+ 3.10

 src/fr-window.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/fr-window.c b/src/fr-window.c
index 8545a83..e5e1342 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -5614,6 +5614,12 @@ fr_window_construct (FrWindow *window)
        gtk_size_group_add_widget (header_bar_size_group, button);
        gtk_header_bar_pack_start (GTK_HEADER_BAR (window->priv->headerbar), button);
 
+#if ! GTK_CHECK_VERSION(3,11,4)
+       button = _gtk_header_bar_create_image_toggle_button ("edit-find-symbolic", _("Find files by name"), 
"win.find");
+       gtk_size_group_add_widget (header_bar_size_group, button);
+       gtk_header_bar_pack_end (GTK_HEADER_BAR (window->priv->headerbar), button);
+#endif
+
         /* gears menu button */
 
         {
@@ -5634,9 +5640,11 @@ fr_window_construct (FrWindow *window)
                 g_object_unref (builder);
         }
 
+#if GTK_CHECK_VERSION(3,11,4)
        button = _gtk_header_bar_create_image_toggle_button ("edit-find-symbolic", _("Find files by name"), 
"win.find");
        gtk_size_group_add_widget (header_bar_size_group, button);
        gtk_header_bar_pack_end (GTK_HEADER_BAR (window->priv->headerbar), button);
+#endif
 
         g_object_unref (header_bar_size_group);
 


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