diff options
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); |