[gtk+/gtk-3-18] file chooser: Also apply the settings



commit 2558ed9022664547eec425318afbfc4605570230
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Dec 11 12:25:31 2015 -0500

    file chooser: Also apply the settings
    
    I forgot that the settings object we're dealing with here
    is in delay mode, so settings won't apply immediately.

 gtk/gtkfilechooserdialog.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkfilechooserdialog.c b/gtk/gtkfilechooserdialog.c
index fa70b08..16e79e1 100644
--- a/gtk/gtkfilechooserdialog.c
+++ b/gtk/gtkfilechooserdialog.c
@@ -638,6 +638,8 @@ save_dialog_geometry (GtkFileChooserDialog *dialog)
   g_settings_get (settings, SETTINGS_KEY_WINDOW_SIZE, "(ii)", &old_width, &old_height);
   if (old_width != width || old_height != height)
     g_settings_set (settings, SETTINGS_KEY_WINDOW_SIZE, "(ii)", width, height);
+
+  g_settings_apply (settings);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]