application: Delay context initialization

This commit is contained in:
Georges Basile Stavracas Neto
2019-04-25 16:30:58 -03:00
parent 09cb142a5b
commit da3a903d1e
3 changed files with 42 additions and 3 deletions
+2 -1
View File
@@ -23,6 +23,7 @@
#include "css-code.h"
#include "gcal-application.h"
#include "gcal-context-private.h"
#include "gcal-debug.h"
#include "gcal-log.h"
#include "gcal-shell-search-provider.h"
@@ -311,7 +312,7 @@ gcal_application_startup (GApplication *app)
self->colors_provider = gtk_css_provider_new ();
/* Startup the manager */
gcal_manager_startup (gcal_context_get_manager (self->context));
gcal_context_startup (self->context);
/* We're assuming the application is called as a service only by the shell search system */
if ((g_application_get_flags (app) & G_APPLICATION_IS_SERVICE) != 0)