manager: hold a reference of the application's settings

We need to keep on the settings the list of the disabled sources
Moved code from ::init vfunc to ::constructed vfunc in order to wait for
construction properties to be set
This commit is contained in:
Erick Pérez Castellanos
2014-12-22 08:38:19 -05:00
parent c28e345b5b
commit 9af65c8f1f
3 changed files with 103 additions and 32 deletions
+1 -1
View File
@@ -211,7 +211,7 @@ gcal_application_startup (GApplication *app)
g_object_unref (priv->provider);
}
priv->manager = gcal_manager_new ();
priv->manager = gcal_manager_new_with_settings (priv->settings);
gcal_application_set_app_menu (app);
}