[gnome-music/wip/jfelder/gtk4-v3: 153/175] ui/headerbar: Use icon-name property for buttons




commit de8120708c246ddf5536b1a24cecf899d9fc3d29
Author: Jean Felder <jfelder src gnome org>
Date:   Fri Feb 4 05:13:16 2022 +0100

    ui/headerbar: Use icon-name property for buttons

 data/ui/HeaderBar.ui | 44 ++++----------------------------------------
 1 file changed, 4 insertions(+), 40 deletions(-)
---
diff --git a/data/ui/HeaderBar.ui b/data/ui/HeaderBar.ui
index acd7ef32f..1decc5e5d 100644
--- a/data/ui/HeaderBar.ui
+++ b/data/ui/HeaderBar.ui
@@ -13,17 +13,8 @@
             <property name="focusable">False</property>
             <property name="valign">center</property>
             <property name="sensitive">True</property>
+            <property name="icon-name">open-menu-symbolic</property>
             <property name="tooltip_text" translatable="yes">Menu</property>
-            <style>
-              <class name="image-button"/>
-            </style>
-            <child>
-              <object class="GtkImage" id="_menu_button_image">
-                <property name="focusable">False</property>
-                <property name="icon-name">open-menu-symbolic</property>
-                <property name="icon-size">1</property>
-              </object>
-            </child>
           </object>
         </child>
         <child type="end">
@@ -31,17 +22,8 @@
             <property name="focusable">False</property>
             <property name="valign">center</property>
             <property name="sensitive">True</property>
+            <property name="icon-name">object-select-symbolic</property>
             <property name="tooltip_text" translatable="yes">Select</property>
-            <style>
-              <class name="image-button"/>
-            </style>
-            <child>
-              <object class="GtkImage" id="_select_button_image">
-                <property name="focusable">False</property>
-                <property name="icon-name">object-select-symbolic</property>
-                <property name="icon-size">1</property>
-              </object>
-            </child>
           </object>
         </child>
         <child type="end">
@@ -63,17 +45,8 @@
             <property name="focusable">False</property>
             <property name="valign">center</property>
             <property name="sensitive">True</property>
+            <property name="icon-name">edit-find-symbolic</property>
             <property name="tooltip_text" translatable="yes">Search</property>
-            <style>
-              <class name="image-button"/>
-            </style>
-            <child>
-              <object class="GtkImage" id="_search_button_image">
-                <property name="focusable">False</property>
-                <property name="icon-name">edit-find-symbolic</property>
-                <property name="icon-size">1</property>
-              </object>
-            </child>
           </object>
         </child>
         <child type="start">
@@ -81,18 +54,9 @@
             <property name="focusable">False</property>
             <property name="valign">center</property>
             <property name="sensitive">True</property>
+            <property name="icon-name">go-previous-symbolic</property>
             <property name="tooltip_text" translatable="yes">Back</property>
             <signal name="clicked" handler="_on_back_button_clicked" swapped="no"/>
-            <style>
-              <class name="image-button"/>
-            </style>
-            <child>
-              <object class="GtkImage" id="_back_button_image">
-                <property name="focusable">False</property>
-                <property name="icon-name">go-previous-symbolic</property>
-                <property name="icon-size">1</property>
-              </object>
-            </child>
           </object>
         </child>
       </object>


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