[gnome-initial-setup] Fix headerbar height



commit ed9f4be0c8b95caa269032190e5717ee775ac93f
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Dec 5 21:13:56 2013 -0500

    Fix headerbar height
    
    We don't need a subtitle, so don't reserve space for it.

 gnome-initial-setup/gis-assistant.c  |    6 ++++--
 gnome-initial-setup/gis-assistant.ui |    8 ++++++++
 2 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/gnome-initial-setup/gis-assistant.c b/gnome-initial-setup/gis-assistant.c
index cabcd24..478bfa0 100644
--- a/gnome-initial-setup/gis-assistant.c
+++ b/gnome-initial-setup/gis-assistant.c
@@ -49,6 +49,7 @@ struct _GisAssistantPrivate
   GtkWidget *main_layout;
   GtkWidget *spinner;
   GtkWidget *titlebar;
+  GtkWidget *title;
   GtkWidget *stack;
 
   GList *pages;
@@ -239,8 +240,8 @@ update_titlebar (GisAssistant *assistant)
 {
   GisAssistantPrivate *priv = gis_assistant_get_instance_private (assistant);
 
-  gtk_header_bar_set_title (GTK_HEADER_BAR (priv->titlebar),
-                            gis_assistant_get_title (assistant));
+  gtk_label_set_label (GTK_LABEL (priv->title),
+                       gis_assistant_get_title (assistant));
 }
 
 static void
@@ -450,6 +451,7 @@ gis_assistant_class_init (GisAssistantClass *klass)
   gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass), GisAssistant, main_layout);
   gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass), GisAssistant, spinner);
   gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass), GisAssistant, titlebar);
+  gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass), GisAssistant, title);
   gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass), GisAssistant, stack);
 
   gobject_class->get_property = gis_assistant_get_property;
diff --git a/gnome-initial-setup/gis-assistant.ui b/gnome-initial-setup/gis-assistant.ui
index 911776f..0209834 100644
--- a/gnome-initial-setup/gis-assistant.ui
+++ b/gnome-initial-setup/gis-assistant.ui
@@ -3,6 +3,14 @@
   <!-- interface-requires gtk+ 3.10 -->
   <object class="GtkHeaderBar" id="titlebar">
     <property name="visible">True</property>
+    <child type="title">
+      <object class="GtkLabel" id="title">
+        <property name="visible">True</property>
+        <attributes>
+          <attribute name="weight" value="bold"/>
+        </attributes>
+      </object>
+    </child>
     <child>
       <object class="GtkButton" id="cancel">
         <property name="visible">True</property>


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