[PATCH 1/2] Lessen the visible resize when entering the welcome and lang spokes

David Shea dshea at redhat.com
Tue Jul 22 21:31:16 UTC 2014


Set the two treeviews to take up the full width of the spoke instead of
being centered within the spoke and set the containing grid to
column-homogenous. This way the widths of the TreeViews are not
dependent upon the size of the strings in the ListStores. Always make
the language column scrollbar visible so the scrollbar won't appear
part of the way through the list populating. Switch the alignment
properties on the language text renderers so that the native string is
most of the way to the left and the english string is most of the way to
the right since I think that was what was intended anyway.
---
 pyanaconda/ui/gui/spokes/langsupport.glade | 9 +++++----
 pyanaconda/ui/gui/spokes/welcome.glade     | 7 ++++---
 2 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/langsupport.glade b/pyanaconda/ui/gui/spokes/langsupport.glade
index 5cf9cad..f4a9122 100644
--- a/pyanaconda/ui/gui/spokes/langsupport.glade
+++ b/pyanaconda/ui/gui/spokes/langsupport.glade
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- Generated with glade 3.18.1 -->
+<!-- Generated with glade 3.18.3 -->
 <interface>
   <requires lib="gtk+" version="3.2"/>
   <requires lib="AnacondaWidgets" version="1.0"/>
@@ -91,11 +91,11 @@
                   <object class="GtkGrid" id="mainGrid">
                     <property name="visible">True</property>
                     <property name="can_focus">False</property>
-                    <property name="halign">center</property>
                     <property name="hexpand">True</property>
                     <property name="vexpand">True</property>
                     <property name="row_spacing">6</property>
                     <property name="column_spacing">6</property>
+                    <property name="column_homogeneous">True</property>
                     <child>
                       <object class="GtkScrolledWindow" id="languageWindow">
                         <property name="visible">True</property>
@@ -103,6 +103,7 @@
                         <property name="hexpand">True</property>
                         <property name="vexpand">True</property>
                         <property name="hscrollbar_policy">never</property>
+                        <property name="vscrollbar_policy">always</property>
                         <property name="shadow_type">in</property>
                         <child>
                           <object class="GtkTreeView" id="languageView">
@@ -128,7 +129,7 @@
                                 <property name="sort_column_id">0</property>
                                 <child>
                                   <object class="GtkCellRendererText" id="nativeNameRenderer">
-                                    <property name="xalign">0.89999997615814209</property>
+                                    <property name="xalign">0.10000000149011612</property>
                                     <property name="font">Cantarell 12</property>
                                   </object>
                                   <attributes>
@@ -145,7 +146,7 @@
                                 <property name="sort_column_id">1</property>
                                 <child>
                                   <object class="GtkCellRendererText" id="englishNameRenderer">
-                                    <property name="xalign">0.10000000149011612</property>
+                                    <property name="xalign">0.89999997615814209</property>
                                     <property name="font">Cantarell Italic 14</property>
                                     <property name="foreground">gray</property>
                                   </object>
diff --git a/pyanaconda/ui/gui/spokes/welcome.glade b/pyanaconda/ui/gui/spokes/welcome.glade
index 0516496..594a410 100644
--- a/pyanaconda/ui/gui/spokes/welcome.glade
+++ b/pyanaconda/ui/gui/spokes/welcome.glade
@@ -231,11 +231,11 @@
                   <object class="GtkGrid" id="mainGrid">
                     <property name="visible">True</property>
                     <property name="can_focus">False</property>
-                    <property name="halign">center</property>
                     <property name="hexpand">True</property>
                     <property name="vexpand">True</property>
                     <property name="row_spacing">6</property>
                     <property name="column_spacing">6</property>
+                    <property name="column_homogeneous">True</property>
                     <child>
                       <object class="GtkScrolledWindow" id="languageWindow">
                         <property name="visible">True</property>
@@ -243,6 +243,7 @@
                         <property name="hexpand">True</property>
                         <property name="vexpand">True</property>
                         <property name="hscrollbar_policy">never</property>
+                        <property name="vscrollbar_policy">always</property>
                         <property name="shadow_type">in</property>
                         <child>
                           <object class="GtkTreeView" id="languageView">
@@ -267,7 +268,7 @@
                                 <property name="sort_column_id">0</property>
                                 <child>
                                   <object class="GtkCellRendererText" id="nativeNameRenderer">
-                                    <property name="xalign">0.89999997615814209</property>
+                                    <property name="xalign">0.10000000149011612</property>
                                     <property name="font">Cantarell 12</property>
                                   </object>
                                   <attributes>
@@ -284,7 +285,7 @@
                                 <property name="sort_column_id">1</property>
                                 <child>
                                   <object class="GtkCellRendererText" id="englishNameRenderer">
-                                    <property name="xalign">0.10000000149011612</property>
+                                    <property name="xalign">0.89999997615814209</property>
                                     <property name="font">Cantarell Italic 14</property>
                                     <property name="foreground">gray</property>
                                   </object>
-- 
2.0.0



More information about the anaconda-patches mailing list