]> www.fi.muni.cz Git - evince.git/commitdiff
[shell] Use delay-apply mode for last_settings
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sat, 22 May 2010 08:32:25 +0000 (10:32 +0200)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Sat, 22 May 2010 08:32:25 +0000 (10:32 +0200)
shell/ev-window.c

index 29ee12a17495382e86c43461dbcd3b42b3c7a777..dbdb63b9c3b0b92790e496a9e6de6051481f95a6 100644 (file)
@@ -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);