[gnome-taquin] Fix window size saving.



commit 602c796a2c8c4a747bb11f0444563fbdb5c2adaa
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Tue Feb 16 02:31:57 2016 +0100

    Fix window size saving.

 src/game-window.vala |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/game-window.vala b/src/game-window.vala
index 66ecd5c..42abe1d 100644
--- a/src/game-window.vala
+++ b/src/game-window.vala
@@ -186,12 +186,11 @@ public class GameWindow : ApplicationWindow
     * * Window events
     \*/
 
-    private void size_allocate_cb (Allocation allocation)
+    private void size_allocate_cb ()
     {
         if (maximized_state || tiled_state)
             return;
-        window_width = allocation.width;
-        window_height = allocation.height;
+        get_size (out window_width, out window_height);
     }
 
     private bool window_state_event_cb (Gdk.EventWindowState event)


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