gui/event-widget: 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:02 +00:00
committed by Marge Bot
parent 3c9a525710
commit 037ffd3700
7 changed files with 26 additions and 56 deletions
-4
View File
@@ -601,7 +601,6 @@ gcal_agenda_view_add_event (GcalTimelineSubscriber *subscriber,
g_autoptr (GDateTime) event_date = gcal_event_get_date_start (event);
GtkWidget *widget, *row;
GcalTimestampPolicy timestamp_policy;
GcalContext *context;
GCAL_ENTRY;
@@ -623,10 +622,7 @@ gcal_agenda_view_add_event (GcalTimelineSubscriber *subscriber,
else
timestamp_policy = GCAL_TIMESTAMP_POLICY_START;
context = gcal_application_get_context (GCAL_DEFAULT_APPLICATION);
widget = g_object_new (GCAL_TYPE_EVENT_WIDGET,
"context", context,
"event", event,
"orientation", GTK_ORIENTATION_VERTICAL,
"timestamp-policy", timestamp_policy,