[iagno] Fix window size saving.
- From: Arnaud Bonatti <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [iagno] Fix window size saving.
- Date: Tue, 16 Feb 2016 15:40:59 +0000 (UTC)
commit c5afcbb9b7f991fb0430a4f3440261ad10ee3484
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Tue Feb 16 03:38:13 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 f093dca..4b46657 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]