From 5dca707523568a4305ece5fa903b53d774c169fb Mon Sep 17 00:00:00 2001 From: ZenWalker Date: Wed, 8 Jun 2016 01:24:40 +0200 Subject: don't use gdk_drawable_get_size based on file-roller commit: https://git.gnome.org/browse/file-roller/commit/?id=245271bfd9c959e3bbc913eec8e291746cdc221c --- src/fr-window.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/fr-window.c b/src/fr-window.c index f7eed31..bf33d69 100644 --- a/src/fr-window.c +++ b/src/fr-window.c @@ -698,9 +698,8 @@ fr_window_close (FrWindow *window) if (gtk_widget_get_realized (GTK_WIDGET (window))) { int width, height; - width = gdk_window_get_width(gtk_widget_get_window(GTK_WIDGET(window))); - height = gdk_window_get_height(gtk_widget_get_window(GTK_WIDGET(window))); - + width = gtk_widget_get_allocated_width (GTK_WIDGET (window)); + height = gtk_widget_get_allocated_height (GTK_WIDGET (window)); g_settings_set_int (window->priv->settings_ui, PREF_UI_WINDOW_WIDTH, width); g_settings_set_int (window->priv->settings_ui, PREF_UI_WINDOW_HEIGHT, height); -- cgit v1.2.1