[gnome-initial-setup] language: Add an image to this page



commit ddea8d0c5aeab716e826f2817aa1b06da79b92ae
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Dec 6 18:20:43 2013 -0500

    language: Add an image to this page
    
    This is a bit of an experiment, to align the layout of the first
    page with the subsequent pages. And what would be a more natural
    image for this spot than the GNOME logo?

 .../pages/language/gis-language-page.ui            |   17 ++++++++++++++++-
 .../pages/language/gis-welcome-widget.c            |    2 +-
 2 files changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/gnome-initial-setup/pages/language/gis-language-page.ui 
b/gnome-initial-setup/pages/language/gis-language-page.ui
index 117a3db..b54f677 100644
--- a/gnome-initial-setup/pages/language/gis-language-page.ui
+++ b/gnome-initial-setup/pages/language/gis-language-page.ui
@@ -6,15 +6,30 @@
       <object class="GtkBox" id="box">
         <property name="visible">True</property>
         <property name="orientation">vertical</property>
+        <property name="halign">center</property>
+        <property name="valign">fill</property>
+        <child>
+          <object class="GtkImage" id="image1">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="margin_top">54</property>
+            <property name="pixel_size">96</property>
+            <property name="icon_name">start-here-symbolic</property>
+            <style>
+              <class name="dim-label" />
+            </style>
+          </object>
+        </child>
         <child>
           <object class="GisWelcomeWidget" id="welcome_widget">
             <property name="visible">True</property>
             <property name="margin_top">26</property>
+            <property name="margin_bottom">26</property>
+            <property name="valign">center</property>
           </object>
         </child>
         <child>
           <object class="CcLanguageChooser" id="language_chooser">
-            <property name="margin_top">26</property>
             <property name="margin_bottom">32</property>
             <property name="visible">True</property>
             <property name="halign">center</property>
diff --git a/gnome-initial-setup/pages/language/gis-welcome-widget.c 
b/gnome-initial-setup/pages/language/gis-welcome-widget.c
index bdce17f..b5c4fd9 100644
--- a/gnome-initial-setup/pages/language/gis-welcome-widget.c
+++ b/gnome-initial-setup/pages/language/gis-welcome-widget.c
@@ -133,7 +133,7 @@ big_label (const char *text)
   label = gtk_label_new (text);
 
   attrs = pango_attr_list_new ();
-  pango_attr_list_insert (attrs, pango_attr_scale_new (1.8));
+  pango_attr_list_insert (attrs, pango_attr_scale_new (2));
   pango_attr_list_insert (attrs, pango_attr_weight_new (PANGO_WEIGHT_BOLD));
   gtk_label_set_attributes (GTK_LABEL (label), attrs);
   pango_attr_list_unref (attrs);


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