summaryrefslogtreecommitdiff
path: root/applets/clock/calendar-client.c
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2025-09-22 22:23:09 +0000
committerGitHub <[email protected]>2025-09-22 22:23:09 +0000
commitcf2f458dd8b70450c3fdffb10d4a45c8c369b3e9 (patch)
tree1bfd5fb81bf88684653315aaad11f37532ab4fa9 /applets/clock/calendar-client.c
parentd68c23bd8e07612f305dcc7825f3a8ee448544f5 (diff)
downloadmate-panel-cf2f458dd8b70450c3fdffb10d4a45c8c369b3e9.tar.bz2
mate-panel-cf2f458dd8b70450c3fdffb10d4a45c8c369b3e9.tar.xz
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.
Diffstat (limited to 'applets/clock/calendar-client.c')
-rw-r--r--applets/clock/calendar-client.c9
1 files changed, 2 insertions, 7 deletions
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;