diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/fr-window.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fr-window.c b/src/fr-window.c index 110367b1..fcdcb348 100644 --- a/src/fr-window.c +++ b/src/fr-window.c @@ -665,8 +665,7 @@ fr_window_close (FrWindow *window) if (gtk_widget_get_realized (GTK_WIDGET (window))) { int width, height; - width = gtk_widget_get_allocated_width (GTK_WIDGET (window)); - height = gtk_widget_get_allocated_height (GTK_WIDGET (window)); + gtk_window_get_size (GTK_WINDOW (window), &width, &height); 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); |
