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




commit 83719270a4bf0c7f83d0a9434c560a9520133072
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 56952ea5..c92a001a 100644
--- a/src/gui/gcal-window.ui
+++ b/src/gui/gcal-window.ui
@@ -108,10 +108,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>
@@ -121,22 +126,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]