manager: add GcalContext property

This improves access to the GcalContext inside GcalManager.

Also, remove test-manager since it only tests that gcal_manager_new()
returns non-NULL.
This commit is contained in:
Michael Catanzaro
2019-09-19 16:04:04 -05:00
parent 8e6a3b9f3f
commit 50b6d00784
5 changed files with 42 additions and 70 deletions
+1 -1
View File
@@ -109,6 +109,7 @@ gcal_context_constructed (GObject *object)
G_OBJECT_CLASS (gcal_context_parent_class)->constructed (object);
self->manager = gcal_manager_new (self);
self->search_engine = gcal_search_engine_new (self);
}
@@ -265,7 +266,6 @@ gcal_context_init (GcalContext *self)
{
self->clock = gcal_clock_new ();
self->goa_client = goa_client_new_sync (NULL, NULL);
self->manager = gcal_manager_new ();
self->settings = g_settings_new ("org.gnome.calendar");
self->weather_service = gcal_weather_service_new ();