[evince] [shell] Use delay-apply mode for last_settings



commit 985f7016929bae86f89e63fc2b7b56145fbd0382
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Sat May 22 10:32:25 2010 +0200

    [shell] Use delay-apply mode for last_settings

 shell/ev-window.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 29ee12a..dbdb63b 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -4874,6 +4874,7 @@ ev_window_dispose (GObject *object)
 	}
 
 	if (priv->last_settings) {
+		g_settings_apply (priv->last_settings);
 		g_object_unref (priv->last_settings);
 		priv->last_settings = NULL;
 	}
@@ -6460,6 +6461,7 @@ ev_window_init (EvWindow *ev_window)
 	gtk_widget_grab_focus (ev_window->priv->view);
 
 	ev_window->priv->last_settings = g_settings_new (GS_SCHEMA_NAME".Default");
+	g_settings_delay (ev_window->priv->last_settings);
 
 	/* Set it user interface params */
 	ev_window_setup_recent (ev_window);



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