[gnome-characters] searchProvider: add clipboardText to result meta



commit f02298c502f4b0841018eaa61249e248e3a169d2
Author: Daiki Ueno <dueno src gnome org>
Date:   Thu May 11 04:34:58 2017 +0200

    searchProvider: add clipboardText to result meta
    
    This could be used by the shell to copy the result to clipboard.

 src/searchProvider.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/searchProvider.js b/src/searchProvider.js
index 92c4a2c..b402bd9 100644
--- a/src/searchProvider.js
+++ b/src/searchProvider.js
@@ -103,7 +103,8 @@ const SearchProvider = new Lang.Class({
             ret.push({ name: new GLib.Variant('s', name),
                        id: new GLib.Variant('s', identifiers[i]),
                        description: new GLib.Variant('s', summary),
-                       icon: (new Gio.ThemedIcon({ name: 'gnome-characters' })).serialize()
+                       icon: (new Gio.ThemedIcon({ name: 'gnome-characters' })).serialize(),
+                       clipboardText: new GLib.Variant('s', character)
                      });
         }
 


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