[gnome-font-viewer] font-view: Fix headerbar item positions



commit 55485a2e933d47c4a3127fa0bf3246077a9524ed
Author: Yosef Or Boczko <yoseforb gmail com>
Date:   Wed Jan 8 00:47:19 2014 +0200

    font-view: Fix headerbar item positions
    
    Also bump GTK+ dependency to 3.11.4.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=721753

 configure.ac    |    2 +-
 src/font-view.c |   22 +++++++++++-----------
 2 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 2d657d7..d6ff8c9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -34,7 +34,7 @@ AC_CACHE_SAVE
 GLIB_GSETTINGS
 
 GLIB_MIN_VERSION=2.35.1
-GTK_MIN_VERSION=3.9.11
+GTK_MIN_VERSION=3.11.4
 
 PKG_CHECK_MODULES(FONTVIEW,
                   fontconfig
diff --git a/src/font-view.c b/src/font-view.c
index 464a21f..d079bc6 100644
--- a/src/font-view.c
+++ b/src/font-view.c
@@ -517,17 +517,6 @@ font_view_application_do_open (FontViewApplication *self,
 
     font_view_ensure_model (self);
 
-    if (self->info_button == NULL) {
-        self->info_button = gtk_button_new_with_label (_("Info"));
-        gtk_widget_set_valign (self->info_button, GTK_ALIGN_CENTER);
-        gtk_style_context_add_class (gtk_widget_get_style_context (self->info_button),
-                                     "text-button");
-        gtk_header_bar_pack_end (GTK_HEADER_BAR (self->header), self->info_button);
-
-        g_signal_connect (self->info_button, "clicked",
-                          G_CALLBACK (info_button_clicked_cb), self);
-    }
-
     /* add install button */
     if (self->install_button == NULL) {
         self->install_button = gtk_button_new_with_label (_("Install"));
@@ -540,6 +529,17 @@ font_view_application_do_open (FontViewApplication *self,
                           G_CALLBACK (install_button_clicked_cb), self);
     }
 
+    if (self->info_button == NULL) {
+        self->info_button = gtk_button_new_with_label (_("Info"));
+        gtk_widget_set_valign (self->info_button, GTK_ALIGN_CENTER);
+        gtk_style_context_add_class (gtk_widget_get_style_context (self->info_button),
+                                     "text-button");
+        gtk_header_bar_pack_end (GTK_HEADER_BAR (self->header), self->info_button);
+
+        g_signal_connect (self->info_button, "clicked",
+                          G_CALLBACK (info_button_clicked_cb), self);
+    }
+
     if (self->back_button == NULL) {
         self->back_button = gtk_button_new ();
         rtl = gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL;


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