[dconf-editor] Return type changed.



commit b3e033671b130f72f8bfc8022f9d7c1916a0c3e7
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Thu Feb 8 16:24:59 2018 +0100

    Return type changed.

 editor/modifications-handler.vala |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/editor/modifications-handler.vala b/editor/modifications-handler.vala
index 3e8aa13..fc75529 100644
--- a/editor/modifications-handler.vala
+++ b/editor/modifications-handler.vala
@@ -40,7 +40,7 @@ class ModificationsHandler : Object
         {
             uint count = 0;
             keys_awaiting_hashtable.@foreach ((key_path, planned_value) => {
-                    SettingObject? key = model.get_key (key_path);
+                    Key? key = model.get_key (key_path);
                     if (key != null && (!) key is DConfKey)
                         count++;
                 });
@@ -53,7 +53,7 @@ class ModificationsHandler : Object
         {
             uint count = 0;
             keys_awaiting_hashtable.@foreach ((key_path, planned_value) => {
-                    SettingObject? key = model.get_key (key_path);
+                    Key? key = model.get_key (key_path);
                     if (key != null && (!) key is GSettingsKey)
                         count++;
                 });
@@ -227,8 +227,9 @@ class ModificationsHandler : Object
     {
         ListStore delayed_settings_list = new ListStore (typeof (Key));
         keys_awaiting_hashtable.@foreach ((key_path, planned_value) => {
-                SettingObject? key = model.get_key (key_path);
-                delayed_settings_list.append ((Key) (!) key);
+                Key? key = model.get_key (key_path);
+                if (key != null)    // TODO better
+                    delayed_settings_list.append ((!) key);
             });
         return delayed_settings_list;
     }


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