core/shell-search-provider: Replace "context" property with context getter method

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/702>
This commit is contained in:
Hari Rana
2026-03-23 19:30:04 +00:00
committed by Marge Bot
parent 088d826c34
commit e0250064f6
3 changed files with 16 additions and 71 deletions
+2 -1
View File
@@ -513,6 +513,8 @@ gcal_application_dbus_register (GApplication *application,
self = GCAL_APPLICATION (application);
self->search_provider = gcal_shell_search_provider_new ();
if (!G_APPLICATION_CLASS (gcal_application_parent_class)->dbus_register (application, connection, object_path, error))
GCAL_RETURN (FALSE);
@@ -602,7 +604,6 @@ gcal_application_init (GcalApplication *self)
g_application_add_main_option_entries (G_APPLICATION (self), gcal_application_goptions);
self->context = gcal_context_new ();
self->search_provider = gcal_shell_search_provider_new (self->context);
}
/* Public API */