[dconf-editor] Add a right-click popover to ghost keys.



commit ae4d1e6dcbfa9276b6edb48f54052f569417db9d
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Sun May 22 12:05:06 2016 +0200

    Add a right-click popover to ghost keys.

 editor/key-list-box-row.vala |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/editor/key-list-box-row.vala b/editor/key-list-box-row.vala
index 5546f8b..9931349 100644
--- a/editor/key-list-box-row.vala
+++ b/editor/key-list-box-row.vala
@@ -158,7 +158,10 @@ private class KeyListBoxRowEditableNoSchema : KeyListBoxRow
     protected override bool generate_popover (ContextPopover popover)
     {
         if (key.is_ghost)
-            return false;
+        {
+            popover.new_copy_action (get_text ());
+            return true;
+        }
 
         popover.new_action ("customize", () => { on_row_clicked (); });
         popover.new_copy_action (get_text ());


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