[file-roller] Fix saved window size growing out of control with GTK+ 3.20
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] Fix saved window size growing out of control with GTK+ 3.20
- Date: Mon, 7 Mar 2016 04:28:12 +0000 (UTC)
commit cfdfeb566244d5b08a13b8c7e3033a020cd91237
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sun Mar 6 22:27:15 2016 -0600
Fix saved window size growing out of control with GTK+ 3.20
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 51270a9..e33f26e 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -574,8 +574,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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]