[gedit/wip/gtkapp: 14/14] Delay gsettings creation to startup
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/wip/gtkapp: 14/14] Delay gsettings creation to startup
- Date: Tue, 27 Nov 2012 17:32:10 +0000 (UTC)
commit 15031b1889401d91fe36b8b7674d826095e5ff47
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Tue Nov 27 18:27:08 2012 +0100
Delay gsettings creation to startup
gedit/gedit-app.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/gedit/gedit-app.c b/gedit/gedit-app.c
index 3903721..bd42b53 100644
--- a/gedit/gedit-app.c
+++ b/gedit/gedit-app.c
@@ -401,6 +401,13 @@ gedit_app_startup (GApplication *application)
"app", app,
NULL);
+ /* Load settings */
+ app->priv->settings = gedit_settings_new ();
+ app->priv->window_settings = g_settings_new ("org.gnome.gedit.state.window");
+
+ /* initial lockdown state */
+ app->priv->lockdown = gedit_settings_get_lockdown (GEDIT_SETTINGS (app->priv->settings));
+
g_signal_connect (app->priv->extensions,
"extension-added",
G_CALLBACK (extension_added),
@@ -1023,13 +1030,6 @@ static void
gedit_app_init (GeditApp *app)
{
app->priv = GEDIT_APP_GET_PRIVATE (app);
-
- /* Load settings */
- app->priv->settings = gedit_settings_new ();
- app->priv->window_settings = g_settings_new ("org.gnome.gedit.state.window");
-
- /* initial lockdown state */
- app->priv->lockdown = gedit_settings_get_lockdown (GEDIT_SETTINGS (app->priv->settings));
}
/* Generates a unique string for a window role */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]