[gnome-calendar/cdavis/gtk4-button-tweaks: 9/10] window: Change button order, remove `linked`




commit 310a036519c3fe294d63605ebdeb8e307cfad140
Author: Christopher Davis <christopherdavis gnome org>
Date:   Mon Feb 7 15:22:50 2022 -0800

    window: Change button order, remove `linked`
    
    * We shouldn't use `.linked` for header/toolbar buttons,
    per https://blogs.gnome.org/alexm/2021/09/10/cleaning-up-header-bars/
    * In other apps, back/forward buttons are at the very
    beginning of the headerbar.

 src/gui/gcal-window.ui | 33 +++++++++++++--------------------
 1 file changed, 13 insertions(+), 20 deletions(-)
---
diff --git a/src/gui/gcal-window.ui b/src/gui/gcal-window.ui
index 0366b409..3092490a 100644
--- a/src/gui/gcal-window.ui
+++ b/src/gui/gcal-window.ui
@@ -97,10 +97,15 @@
           <object class="GtkHeaderBar" id="header_bar">
             <property name="show-title-buttons">True</property>
             <child>
-              <object class="GtkButton" id="new_event_button">
-                <property name="icon-name">list-add-symbolic</property>
-                <property name="action-name">win.new-event</property>
-                <property name="tooltip_text" translatable="yes" context="tooltip">Add a new event</property>
+              <object class="GtkButton" id="back_button">
+                <property name="icon_name">go-previous-symbolic</property>
+                <property name="action-name">win.previous-date</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkButton" id="forward_button">
+                <property name="icon_name">go-next-symbolic</property>
+                <property name="action-name">win.next-date</property>
               </object>
             </child>
             <child>
@@ -110,22 +115,10 @@
               </object>
             </child>
             <child>
-              <object class="GtkBox" id="button_box">
-                <child>
-                  <object class="GtkButton" id="back_button">
-                    <property name="icon_name">go-previous-symbolic</property>
-                    <property name="action-name">win.previous-date</property>
-                  </object>
-                </child>
-                <child>
-                  <object class="GtkButton" id="forward_button">
-                    <property name="icon_name">go-next-symbolic</property>
-                    <property name="action-name">win.next-date</property>
-                  </object>
-                </child>
-                <style>
-                  <class name="linked"/>
-                </style>
+              <object class="GtkButton" id="new_event_button">
+                <property name="icon-name">list-add-symbolic</property>
+                <property name="action-name">win.new-event</property>
+                <property name="tooltip_text" translatable="yes" context="tooltip">Add a new event</property>
               </object>
             </child>
             <child type="title">


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