From 98e7f763103f7e50452dc355a2135e501c9ce4cc Mon Sep 17 00:00:00 2001 From: John Darrington Date: Mon, 20 May 2013 07:17:23 +0200 Subject: [PATCH] Avoid gdk_drawable_get_size which is now deprecated --- src/ui/gui/psppire-conf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); -- 2.30.2