From cf2f458dd8b70450c3fdffb10d4a45c8c369b3e9 Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Mon, 22 Sep 2025 22:23:09 +0000 Subject: clock: Store calendar client in ClockData (#1516) * clock: Store calendar client in ClockData This simplifies the evolution calendar client architecture and makes the popup show up faster, since we don't need to create a new one every time we open it. * clock: Fix calendar data refresh when opening popup The calendar popup was not showing recently added Evolution events/tasks. Added a refresh timeout call every time the calendar popup opens. That way the popup opens immediately and the data is refresh after a small delay. --- applets/clock/calendar-client.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'applets/clock/calendar-client.c') diff --git a/applets/clock/calendar-client.c b/applets/clock/calendar-client.c index 8bd9a2f3..562234fd 100644 --- a/applets/clock/calendar-client.c +++ b/applets/clock/calendar-client.c @@ -116,11 +116,6 @@ static void calendar_client_start_query (CalendarClient *client, static void calendar_client_source_finalize (CalendarClientSource *source); static void calendar_client_query_finalize (CalendarClientQuery *query); -static void -calendar_client_update_appointments (CalendarClient *client); -static void -calendar_client_update_tasks (CalendarClient *client); - enum { PROP_O, @@ -1420,7 +1415,7 @@ calendar_client_start_query (CalendarClient *client, } } -static void +void calendar_client_update_appointments (CalendarClient *client) { GSList *l; @@ -1458,7 +1453,7 @@ calendar_client_update_appointments (CalendarClient *client) /* FIXME: * perhaps we should use evo's "hide_completed_tasks" pref? */ -static void +void calendar_client_update_tasks (CalendarClient *client) { GSList *l; -- cgit v1.2.1