diff options
author | ZenWalker <[email protected]> | 2016-06-08 01:24:40 +0200 |
---|---|---|
committer | ZenWalker <[email protected]> | 2016-06-08 01:24:40 +0200 |
commit | 5dca707523568a4305ece5fa903b53d774c169fb (patch) | |
tree | af8c0febce08889f7f7bd0bc6b1ea2fe19b4f739 /src | |
parent | 540b703ed1ea4d158fa0109f76db1b7b32c27965 (diff) | |
download | engrampa-5dca707523568a4305ece5fa903b53d774c169fb.tar.bz2 engrampa-5dca707523568a4305ece5fa903b53d774c169fb.tar.xz |
don't use gdk_drawable_get_size
based on file-roller commit:
https://git.gnome.org/browse/file-roller/commit/?id=245271bfd9c959e3bbc913eec8e291746cdc221c
Diffstat (limited to 'src')
-rw-r--r-- | src/fr-window.c | 5 |
1 files 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); |