[gnome-mahjongg] Fix window size increase under GTK+ 3.20
- From: Mario Wenzel <mariowenzel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-mahjongg] Fix window size increase under GTK+ 3.20
- Date: Mon, 15 Feb 2016 20:05:53 +0000 (UTC)
commit cd3b4eb9b734845885aca63ba8369150018ea26f
Author: Mario Wenzel <maweki gmail com>
Date: Mon Feb 15 20:59:08 2016 +0100
Fix window size increase under GTK+ 3.20
src/gnome-mahjongg.vala | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-mahjongg.vala b/src/gnome-mahjongg.vala
index 44b7dc8..a46f1cb 100644
--- a/src/gnome-mahjongg.vala
+++ b/src/gnome-mahjongg.vala
@@ -215,8 +215,7 @@ public class Mahjongg : Gtk.Application
{
if (is_maximized || is_tiled)
return;
- window_width = allocation.width;
- window_height = allocation.height;
+ window.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]