[gnome-boxes/split-remote-outta-wizard: 2/4] collection-toolbar: Make the "New" button have a + image



commit 4b3524cb3725e386a524527614d571c2d4d3b6ff
Author: Felipe Borges <felipeborges gnome org>
Date:   Fri Jul 12 17:05:27 2019 +0200

    collection-toolbar: Make the "New" button have a + image
    
    The icon is now "list-add-symbolic". There are accessibility
    objects in place for screen-readers.
    
    Related to #306

 data/ui/collection-toolbar.ui | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/data/ui/collection-toolbar.ui b/data/ui/collection-toolbar.ui
index 1ee22c03..6ce618a4 100644
--- a/data/ui/collection-toolbar.ui
+++ b/data/ui/collection-toolbar.ui
@@ -18,12 +18,22 @@
       <object class="GtkMenuButton" id="new_btn">
         <property name="visible">True</property>
         <property name="valign">center</property>
-        <property name="use-underline">True</property>
-        <property name="label" translatable="yes">_New</property>
         <property name="popover">assistant_menu</property>
         <style>
-          <class name="text-button"/>
+          <class name="image-button"/>
         </style>
+        <child internal-child="accessible">
+          <object class="AtkObject" id="a11y-new-button">
+            <property name="accessible-name" translatable="yes">New</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkImage">
+            <property name="visible">True</property>
+            <property name="icon-name">list-add-symbolic</property>
+            <property name="icon-size">1</property>
+          </object>
+        </child>
       </object>
     </child>
 


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