[dconf-editor] Adapt to a nullable parameters change.
- From: Arnaud Bonatti <arnaudb src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [dconf-editor] Adapt to a nullable parameters change.
- Date: Wed, 19 Oct 2016 22:26:17 +0000 (UTC)
commit 4e616d063592b68271d5d58996cd5f66da9d2381
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]