[gnome-games] ui: Add a "Add game files" button



commit f4d74755c3f5f45958a5fc5b6a02a249e713fea7
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Sun May 21 15:44:18 2017 +0200

    ui: Add a "Add game files" button
    
    This button is added to the collection header bar.
    
    This allows to add games to the collection from files.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=782824

 data/ui/collection-header-bar.ui |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)
---
diff --git a/data/ui/collection-header-bar.ui b/data/ui/collection-header-bar.ui
index ee23719..3d8b358 100644
--- a/data/ui/collection-header-bar.ui
+++ b/data/ui/collection-header-bar.ui
@@ -6,6 +6,32 @@
     <property name="can_focus">False</property>
     <property name="title" translatable="yes">Games</property>
     <child>
+      <object class="GtkButton" id="add_game">
+        <property name="visible">True</property>
+        <property name="valign">center</property>
+        <property name="use-underline">True</property>
+        <property name="action-name">app.add-game-files</property>
+        <style>
+          <class name="image-button"/>
+        </style>
+        <child internal-child="accessible">
+          <object class="AtkObject" id="a11y-back">
+            <property name="accessible-name" translatable="yes">Add game files…</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkImage" id="add_game_image">
+            <property name="visible">True</property>
+            <property name="icon-name">list-add-symbolic</property>
+            <property name="icon-size">1</property>
+          </object>
+        </child>
+      </object>
+      <packing>
+        <property name="pack-type">start</property>
+      </packing>
+    </child>
+    <child>
       <object class="GtkToggleButton" id="search">
         <property name="visible">True</property>
         <property name="valign">center</property>


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