[dconf-editor] Remove some uses of get_object.



commit ceaed8769edbfd42ba61531ea66a5ecb66e56fec
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Sat Jan 20 12:34:58 2018 +0100

    Remove some uses of get_object.

 editor/browser-view.vala |    2 +-
 editor/pathbar.vala      |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/editor/browser-view.vala b/editor/browser-view.vala
index a5a6d85..e7c496c 100644
--- a/editor/browser-view.vala
+++ b/editor/browser-view.vala
@@ -283,7 +283,7 @@ class BrowserView : Grid
         }
         else if (current_view_is_properties_view ())
         {
-            Key? fresh_key = (Key?) model.get_object (path);
+            Key? fresh_key = model.get_key (path);
             if (fresh_key != null && !properties_view.check_reload ((!) fresh_key, model.get_key_value ((!) 
fresh_key)))
                 return false;
         }
diff --git a/editor/pathbar.vala b/editor/pathbar.vala
index 1f89ccc..4a9be72 100644
--- a/editor/pathbar.vala
+++ b/editor/pathbar.vala
@@ -96,7 +96,7 @@ public class PathBar : Box
 
         if (last_item != null)
         {
-            bool is_ghost = !(model.get_object (complete_path) is Key);
+            bool is_ghost = !(model.path_exists (complete_path));
             set_is_ghost ((!) last_item, is_ghost);
             last_item = null;
         }
@@ -121,7 +121,7 @@ public class PathBar : Box
             if (is_key_path)
             {
                 complete_path += last;
-                bool is_ghost = !(model.get_object (complete_path) is Key);
+                bool is_ghost = !(model.path_exists (complete_path));
                 set_is_ghost (add_path_bar_item (last, complete_path, false, true), is_ghost);
             }
         }


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