[gnome-documents] application: add GActions for search options



commit a657086cb21cb57fb31983630bdab05543c9299f
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Jul 30 15:08:15 2014 +0200

    application: add GActions for search options
    
    https://bugzilla.gnome.org/show_bug.cgi?id=725622

 src/application.js |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index f3e2020..8f77ee8 100644
--- a/src/application.js
+++ b/src/application.js
@@ -522,7 +522,19 @@ const Application = new Lang.Class({
               window_mode: WindowMode.WindowMode.PREVIEW },
             { name: 'copy',
               accel: '<Primary>c',
-              window_mode: WindowMode.WindowMode.PREVIEW }
+              window_mode: WindowMode.WindowMode.PREVIEW },
+            { name: 'search-source',
+              parameter_type: 's',
+              state: GLib.Variant.new('s', Search.SearchSourceStock.ALL),
+              window_mode: WindowMode.WindowMode.OVERVIEW },
+            { name: 'search-type',
+              parameter_type: 's',
+              state: GLib.Variant.new('s', Search.SearchTypeStock.ALL),
+              window_mode: WindowMode.WindowMode.OVERVIEW },
+            { name: 'search-match',
+              parameter_type: 's',
+              state: GLib.Variant.new('s', Search.SearchMatchStock.ALL),
+              window_mode: WindowMode.WindowMode.OVERVIEW }
         ];
 
         this.gdataMiner = new Miners.GDataMiner();


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