[gnome-documents/wip/abono/sort-by: 3/3] view-menu: Add sort options in the popover



commit ad3c6698053937dc5677c6b8a98c387d8ac96446
Author: Alessandro Bono <shadow openaliasbox org>
Date:   Wed Nov 4 12:25:46 2015 +0100

    view-menu: Add sort options in the popover

 data/ui/view-menu.ui |   54 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 54 insertions(+), 0 deletions(-)
---
diff --git a/data/ui/view-menu.ui b/data/ui/view-menu.ui
index 989a656..c3efedf 100644
--- a/data/ui/view-menu.ui
+++ b/data/ui/view-menu.ui
@@ -50,6 +50,60 @@
             </child>
           </object>
         </child>
+        <child>
+          <object class="GtkBox">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="orientation">vertical</property>
+            <child>
+              <object class="GtkSeparator">
+                <property name="visible">True</property>
+                <property name="orientation">horizontal</property>
+                <property name="margin-top">6</property>
+                <property name="margin-bottom">6</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkLabel">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="halign">start</property>
+                <property name="label" translatable="yes">Sort</property>
+                <property name="margin-start">12</property>
+                <style>
+                  <class name="separator"/>
+                </style>
+              </object>
+            </child>
+            <child>
+              <object class="GtkModelButton" id="sort_name">
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="text" translatable="yes">Author</property>
+                <property name="action-name">app.sort-by</property>
+                <property name="action-target">'secondary-text'</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkModelButton" id="sort_size">
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="text" translatable="yes">Date</property>
+                <property name="action-name">app.sort-by</property>
+                <property name="action-target">'mtime'</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkModelButton" id="sort_type">
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="text" translatable="yes">Name</property>
+                <property name="action-name">app.sort-by</property>
+                <property name="action-target">'primary-text'</property>
+              </object>
+            </child>
+          </object>
+        </child>
       </object>
     </child>
   </object>


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