[gnome-software: 91/110] Simplify some GtkButtons again




commit 4df2aea53475bf175c2cfda2dff211df77d9a73c
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Aug 26 18:08:05 2021 -0300

    Simplify some GtkButtons again
    
    Buttons with a single GtkImage as child can simply be declared
    with an icon name

 src/gs-app-details-page.ui | 8 +-------
 src/gs-shell.ui            | 8 +-------
 2 files changed, 2 insertions(+), 14 deletions(-)
---
diff --git a/src/gs-app-details-page.ui b/src/gs-app-details-page.ui
index 3295b53a4..d4c1c5f1f 100644
--- a/src/gs-app-details-page.ui
+++ b/src/gs-app-details-page.ui
@@ -18,6 +18,7 @@
             <property name="visible">True</property>
             <property name="can_focus">True</property>
             <property name="receives_default">True</property>
+            <property name="icon_name">go-previous-symbolic</property>
             <signal name="clicked" handler="back_clicked_cb"/>
             <style>
               <class name="image-button"/>
@@ -25,13 +26,6 @@
             <accessibility>
               <property name="label" translatable="yes">Go back</property>
             </accessibility>
-            <child>
-              <object class="GtkImage">
-                <property name="visible">True</property>
-                <property name="icon_name">go-previous-symbolic</property>
-                <property name="icon-size">normal</property>
-              </object>
-            </child>
           </object>
         </child>
       </object>
diff --git a/src/gs-shell.ui b/src/gs-shell.ui
index 3470781af..4ec32ac03 100644
--- a/src/gs-shell.ui
+++ b/src/gs-shell.ui
@@ -188,6 +188,7 @@
                                           <object class="GtkToggleButton" id="search_button">
                                             <property name="visible">True</property>
                                             <property name="can_focus">True</property>
+                                            <property name="icon_name">edit-find-symbolic</property>
                                             <property name="active" bind-source="search_bar" 
bind-property="search-mode-enabled" bind-flags="sync-create|bidirectional"/>
                                             <signal name="clicked" handler="search_button_clicked_cb"/>
                                             <accessibility>
@@ -196,13 +197,6 @@
                                             <style>
                                               <class name="image-button"/>
                                             </style>
-                                            <child>
-                                              <object class="GtkImage">
-                                                <property name="visible">True</property>
-                                                <property name="icon_name">edit-find-symbolic</property>
-                                                <property name="icon-size">normal</property>
-                                              </object>
-                                            </child>
                                           </object>
                                         </child>
                                         <child type="end">


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