[evolution] I#1032 - alarm-notify: Add a way to disable sound notifications
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] I#1032 - alarm-notify: Add a way to disable sound notifications
- Date: Tue, 16 Nov 2021 13:34:36 +0000 (UTC)
commit 11c68ba645af2f83908c267e1665db65ee585726
Author: Milan Crha <mcrha redhat com>
Date: Tue Nov 16 14:33:42 2021 +0100
I#1032 - alarm-notify: Add a way to disable sound notifications
Only adds an option to the Calendar Preferences.
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/1032
src/modules/calendar/e-calendar-preferences.c | 6 ++++++
src/modules/calendar/e-calendar-preferences.ui | 23 +++++++++++++++++++----
2 files changed, 25 insertions(+), 4 deletions(-)
---
diff --git a/src/modules/calendar/e-calendar-preferences.c b/src/modules/calendar/e-calendar-preferences.c
index b0253f8472..aa278fff81 100644
--- a/src/modules/calendar/e-calendar-preferences.c
+++ b/src/modules/calendar/e-calendar-preferences.c
@@ -1101,6 +1101,12 @@ calendar_preferences_construct (ECalendarPreferences *prefs,
widget, "active",
G_SETTINGS_BIND_DEFAULT);
+ widget = e_builder_get_widget (prefs->priv->builder, "notify_enable_audio");
+ g_settings_bind (
+ eds_calendar_settings, "notify-enable-audio",
+ widget, "active",
+ G_SETTINGS_BIND_DEFAULT);
+
widget = e_builder_get_widget (prefs->priv->builder, "task_reminder_for_completed");
g_settings_bind (
eds_calendar_settings, "notify-completed-tasks",
diff --git a/src/modules/calendar/e-calendar-preferences.ui b/src/modules/calendar/e-calendar-preferences.ui
index e3dd137e32..2d10e26b32 100644
--- a/src/modules/calendar/e-calendar-preferences.ui
+++ b/src/modules/calendar/e-calendar-preferences.ui
@@ -1565,6 +1565,21 @@
<property name="position">2</property>
</packing>
</child>
+ <child>
+ <object class="GtkCheckButton" id="notify_enable_audio">
+ <property name="label" translatable="yes">Enable _audio notifications</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_underline">True</property>
+ <property name="draw_indicator">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">3</property>
+ </packing>
+ </child>
<child>
<object class="GtkCheckButton" id="task_reminder_for_completed">
<property name="label" translatable="yes">Display reminders for completed
_tasks</property>
@@ -1577,7 +1592,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
- <property name="position">3</property>
+ <property name="position">4</property>
</packing>
</child>
<child>
@@ -1592,7 +1607,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
- <property name="position">4</property>
+ <property name="position">5</property>
</packing>
</child>
<child>
@@ -1662,7 +1677,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
- <property name="position">5</property>
+ <property name="position">6</property>
</packing>
</child>
<child>
@@ -1732,7 +1747,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
- <property name="position">6</property>
+ <property name="position">7</property>
</packing>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]