[gnome-control-center/gbsneto/fix-datetime-dialog: 2/3] datetime: Switch year row to AdwActionRow




commit b7876233e9afe7bed107f2b3a91eb21201c30658
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Wed Jan 26 23:46:10 2022 -0300

    datetime: Switch year row to AdwActionRow
    
    Another nice, small cleanup

 panels/datetime/cc-datetime-panel.ui | 32 ++++++++------------------------
 1 file changed, 8 insertions(+), 24 deletions(-)
---
diff --git a/panels/datetime/cc-datetime-panel.ui b/panels/datetime/cc-datetime-panel.ui
index 9b30ce1b0..916e1f63d 100644
--- a/panels/datetime/cc-datetime-panel.ui
+++ b/panels/datetime/cc-datetime-panel.ui
@@ -46,31 +46,15 @@
 
                 <!-- Year row -->
                 <child>
-                  <object class="GtkListBoxRow" id="year_row">
-                    <property name="activatable">False</property>
+                  <object class="AdwActionRow" id="year_row">
+                    <property name="title" translatable="yes">Year</property>
+                    <property name="activatable-widget">year_spinbutton</property>
+
                     <child>
-                      <object class="GtkBox">
-                        <property name="margin_top">12</property>
-                        <property name="margin_bottom">12</property>
-                        <property name="margin_start">12</property>
-                        <property name="margin_end">12</property>
-                        <child>
-                          <object class="GtkLabel">
-                            <property name="hexpand">True</property>
-                            <property name="halign">start</property>
-                            <property name="label" translatable="yes">Year</property>
-                            <property name="mnemonic-widget">year_spinbutton</property>
-                            <style>
-                              <class name="dim-label"/>
-                            </style>
-                          </object>
-                        </child>
-                        <child>
-                          <object class="GtkSpinButton" id="year_spinbutton">
-                            <property name="width-chars">4</property>
-                            <property name="numeric">True</property>
-                          </object>
-                        </child>
+                      <object class="GtkSpinButton" id="year_spinbutton">
+                        <property name="valign">center</property>
+                        <property name="width-chars">4</property>
+                        <property name="numeric">True</property>
                       </object>
                     </child>
                   </object>


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