From: John Darrington <john@darrington.wattle.id.au>
Date: Mon, 20 May 2013 05:17:23 +0000 (+0200)
Subject: Avoid gdk_drawable_get_size which is now deprecated
X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98e7f763103f7e50452dc355a2135e501c9ce4cc;p=pspp

Avoid gdk_drawable_get_size which is now deprecated
---

diff --git a/src/ui/gui/psppire-conf.c b/src/ui/gui/psppire-conf.c
index fe4f934bd6..e917ecebb8 100644
--- a/src/ui/gui/psppire-conf.c
+++ b/src/ui/gui/psppire-conf.c
@@ -300,10 +300,11 @@ psppire_conf_save_window_geometry (PsppireConf *conf,
 
   if (!maximized)
     {
-      gint width, height;
       gint x, y;
 
-      gdk_drawable_get_size (w, &width, &height);
+      gint width = gdk_window_get_width (w);
+      gint height= gdk_window_get_height (w);
+
       gdk_window_get_position (w, &x, &y);
 
       psppire_conf_set_int (conf, base, "height", height);