[meld/meld-3-16] meldwindow: Fix for GtkWindow sizing API break (bgo#771288)
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld/meld-3-16] meldwindow: Fix for GtkWindow sizing API break (bgo#771288)
- Date: Fri, 16 Sep 2016 23:06:41 +0000 (UTC)
commit 1a59a7832327cbe6a9f6a8d818c36097aadd54d0
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sat Sep 17 09:02:06 2016 +1000
meldwindow: Fix for GtkWindow sizing API break (bgo#771288)
With client-side decorations, the window's saved size and set size
don't round-trip correctly. See bgo#771112 for more fun.
meld/meldwindow.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/meld/meldwindow.py b/meld/meldwindow.py
index d419692..ac5c9ab 100644
--- a/meld/meldwindow.py
+++ b/meld/meldwindow.py
@@ -452,7 +452,8 @@ class MeldWindow(gnomeglade.Component):
state = event.window.get_state()
nosave = Gdk.WindowState.FULLSCREEN | Gdk.WindowState.MAXIMIZED
if not (state & nosave):
- variant = GLib.Variant('(ii)', (event.width, event.height))
+ width, height = self.widget.get_size()
+ variant = GLib.Variant('(ii)', (width, height))
settings.set_value('window-size', variant)
maximised = state & Gdk.WindowState.MAXIMIZED
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]