core/calendar: Add "parent-source" property

Tracks the parent ESource of this calendar. Will be useful for future
patches.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/610>
This commit is contained in:
Georges Basile Stavracas Neto
2025-07-02 18:04:26 +00:00
committed by Marge Bot
parent 6ab0ef7386
commit e9ec77f15b
3 changed files with 44 additions and 1 deletions
+5 -1
View File
@@ -296,6 +296,8 @@ static void
load_source (GcalManager *self,
ESource *source)
{
g_autoptr (ESource) parent = NULL;
GCAL_ENTRY;
if (g_hash_table_contains (self->clients, source))
@@ -306,7 +308,9 @@ load_source (GcalManager *self,
return;
}
gcal_calendar_new (source, self->async_ops, on_calendar_created_cb, self);
parent = e_source_registry_ref_source (self->source_registry, e_source_get_parent (source));
gcal_calendar_new (source, parent, self->async_ops, on_calendar_created_cb, self);
GCAL_EXIT;
}