Avoid gdk_drawable_get_size which is now deprecated
authorJohn Darrington <john@darrington.wattle.id.au>
Mon, 20 May 2013 05:17:23 +0000 (07:17 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Tue, 28 May 2013 14:03:23 +0000 (16:03 +0200)
src/ui/gui/psppire-conf.c

index fe4f934bd640193e382f1fc077c7ff661f91850b..e917ecebb87f294fd1b4b8e3a6e15a69af023cb1 100644 (file)
@@ -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);