From 420a126ddb018bfb22f0433f8d2d61769c757024 Mon Sep 17 00:00:00 2001 From: Abdullahi Usman Date: Sun, 5 May 2024 03:06:24 +0100 Subject: [PATCH] reminders-section: fix reminder alarm toggle button states Alarm toggle state are in three stages because we do not update both icon and active when pressed. we now update the icons to match their states. --- src/gui/event-editor/gcal-alarm-row.ui | 1 + src/gui/event-editor/gcal-reminders-section.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/event-editor/gcal-alarm-row.ui b/src/gui/event-editor/gcal-alarm-row.ui index 413d7d3c..3fb1e10e 100644 --- a/src/gui/event-editor/gcal-alarm-row.ui +++ b/src/gui/event-editor/gcal-alarm-row.ui @@ -7,6 +7,7 @@ audio-volume-high-symbolic Toggle Alarm Sound + yes diff --git a/src/gui/event-editor/gcal-reminders-section.c b/src/gui/event-editor/gcal-reminders-section.c index 910ee053..fe78d4d6 100644 --- a/src/gui/event-editor/gcal-reminders-section.c +++ b/src/gui/event-editor/gcal-reminders-section.c @@ -124,7 +124,7 @@ create_alarm (guint minutes) alarm = e_cal_component_alarm_new (); e_cal_component_alarm_take_trigger (alarm, trigger); - e_cal_component_alarm_set_action (alarm, E_CAL_COMPONENT_ALARM_DISPLAY); + e_cal_component_alarm_set_action (alarm, E_CAL_COMPONENT_ALARM_AUDIO); return alarm; }