[dconf-editor/gnome-3-22] Adapt to a nullable parameters change.



commit e869bdac6d6079b4f456c7a79df13b3f6e9e5bc8
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Thu Oct 20 00:22:20 2016 +0200

    Adapt to a nullable parameters change.

 editor/dconf-window.vala |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/editor/dconf-window.vala b/editor/dconf-window.vala
index 1f9b038..d0c3329 100644
--- a/editor/dconf-window.vala
+++ b/editor/dconf-window.vala
@@ -194,7 +194,13 @@ class DConfWindow : ApplicationWindow
 
         if (window_is_maximized || window_is_tiled)
             return;
-        get_size (out window_width, out window_height);
+        int? _window_width = null;
+        int? _window_height = null;
+        get_size (out _window_width, out _window_height);
+        if (_window_width == null || _window_height == null)
+            return;
+        window_width = (!) _window_width;
+        window_height = (!) _window_height;
     }
 
     [GtkCallback]


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