[gnome-control-center] region: Stabilize the size of the Input Sources button



commit 8cb75c45a34aee963643bbd20b908723fb95c8db
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Sat Jan 26 17:12:37 2019 +0100

    region: Stabilize the size of the Input Sources button
    
    This avoids the button's size to jump as its surrounding box's size
    changes because of the description label taking more or less lines.

 panels/region/cc-region-panel.ui | 32 ++++++++++++--------------------
 1 file changed, 12 insertions(+), 20 deletions(-)
---
diff --git a/panels/region/cc-region-panel.ui b/panels/region/cc-region-panel.ui
index baebcd921..ea980b714 100644
--- a/panels/region/cc-region-panel.ui
+++ b/panels/region/cc-region-panel.ui
@@ -215,32 +215,24 @@
                           </object>
                         </child>
                         <child>
-                          <object class="GtkAspectFrame">
+                          <object class="GtkMenuButton" id="options_button">
                             <property name="visible">True</property>
-                            <property name="can_focus">False</property>
-                            <property name="label_xalign">0</property>
-                            <property name="shadow_type">none</property>
-                            <property name="obey_child">False</property>
-                            <property name="xalign">1.0</property>
+                            <property name="can_focus">True</property>
+                            <property name="receives_default">True</property>
+                            <property name="popover">options_popover</property>
                             <property name="hexpand">True</property>
+                            <property name="halign">end</property>
+                            <property name="valign">start</property>
                             <child>
-                              <object class="GtkMenuButton" id="options_button">
+                              <object class="GtkImage">
                                 <property name="visible">True</property>
-                                <property name="can_focus">True</property>
-                                <property name="receives_default">True</property>
-                                <property name="popover">options_popover</property>
-                                <child>
-                                  <object class="GtkImage">
-                                    <property name="visible">True</property>
-                                    <property name="can_focus">False</property>
-                                    <property name="icon_name">emblem-system-symbolic</property>
-                                  </object>
-                                </child>
-                                <style>
-                                  <class name="image-button"/>
-                                </style>
+                                <property name="can_focus">False</property>
+                                <property name="icon_name">emblem-system-symbolic</property>
                               </object>
                             </child>
+                            <style>
+                              <class name="image-button"/>
+                            </style>
                           </object>
                         </child>
                       </object>


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