[dconf-editor] Make get_parent_path static



commit 83a0e079925aa60db5698fb4d2d39d61ca036841
Author: Davi da Silva Böger <dsboger gmail com>
Date:   Sat Dec 2 15:59:58 2017 -0200

    Make get_parent_path static

 editor/dconf-model.vala     |    2 +-
 editor/registry-search.vala |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/editor/dconf-model.vala b/editor/dconf-model.vala
index 55f6b6a..6c41a03 100644
--- a/editor/dconf-model.vala
+++ b/editor/dconf-model.vala
@@ -818,7 +818,7 @@ public class SettingsModel : Object
         return get_key_from_path_and_name (((!) parent).key_model, name);
     }
 
-    public string get_parent_path (string path)
+    public static string get_parent_path (string path)
     {
         if (path == "/")
             return path;
diff --git a/editor/registry-search.vala b/editor/registry-search.vala
index b7249d1..87ad7db 100644
--- a/editor/registry-search.vala
+++ b/editor/registry-search.vala
@@ -548,7 +548,7 @@ class RegistrySearch : Grid, PathElement, BrowsableView
 
             if (bookmark == current_path)
                 continue;
-            if (model.get_parent_path (bookmark) == current_path)
+            if (SettingsModel.get_parent_path (bookmark) == current_path)
                 continue;
 
             SettingObject? setting_object = model.get_object (bookmark);


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