[dconf-editor] Fix previous commit.



commit ec15197f18cae8d0c30ad5ff2b65c496ab572424
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Thu Jan 11 03:18:49 2018 +0100

    Fix previous commit.

 editor/dconf-window.vala |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/editor/dconf-window.vala b/editor/dconf-window.vala
index 31a16de..3244da1 100644
--- a/editor/dconf-window.vala
+++ b/editor/dconf-window.vala
@@ -289,7 +289,7 @@ class DConfWindow : ApplicationWindow
         { "reload", reload },
 
         { "reset-recursive", reset_recursively, "s" },
-        { "reset-visible", reset_visible },
+        { "reset-visible", reset_visible, "s" },
         { "enter-delay-mode", enter_delay_mode }
     };
 
@@ -322,9 +322,10 @@ class DConfWindow : ApplicationWindow
         reset_path (((!) path_variant).get_string (), true);
     }
 
-    private void reset_visible (/* SimpleAction action, Variant? path_variant */)
+    private void reset_visible (SimpleAction action, Variant? path_variant)
+        requires (path_variant != null)
     {
-        reset_path (current_path, false);
+        reset_path (((!) path_variant).get_string (), false);
     }
 
     private void reset_path (string path, bool recursively)
@@ -440,7 +441,7 @@ class DConfWindow : ApplicationWindow
         {
             section = new GLib.Menu ();
             Variant variant = new Variant.string (current_path);
-            section.append (_("Reset visible keys"), "ui.reset-visible");
+            section.append (_("Reset visible keys"), "ui.reset-visible(" + variant.print (false) + ")");
             section.append (_("Reset view recursively"), "ui.reset-recursive(" + variant.print (false) + 
")");
             section.freeze ();
             menu.append_section (null, section);


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