[seahorse/nielsdg/add-new-item-button-on-status-page] key-manager: Add "new item" button to empty status page




commit d3f0fa1f0b661bc1c75e2c00d1d0638178157dcd
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Sun Jun 5 23:50:48 2022 +0200

    key-manager: Add "new item" button to empty status page
    
    Fixes: https://gitlab.gnome.org/GNOME/seahorse/-/issues/341

 src/seahorse-key-manager.ui | 11 +++++++++++
 1 file changed, 11 insertions(+)
---
diff --git a/src/seahorse-key-manager.ui b/src/seahorse-key-manager.ui
index 71238692..4b69b6af 100644
--- a/src/seahorse-key-manager.ui
+++ b/src/seahorse-key-manager.ui
@@ -513,6 +513,17 @@
                     <property name="visible">True</property>
                     <property name="icon-name">org.gnome.seahorse.Application-symbolic</property>
                     <property name="title" translatable="yes">This collection seems to be empty</property>
+                    <child>
+                      <object class="GtkButton">
+                        <property name="visible">True</property>
+                        <property name="halign">center</property>
+                        <property name="action-name">win.new-item</property>
+                        <property name="label" translatable="yes">Add new items</property>
+                        <style>
+                          <class name="suggested-action"/>
+                        </style>
+                      </object>
+                    </child>
                   </object>
                   <packing>
                     <property name="name">empty_state_page</property>


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