I#1026 - alarm-notify: Add option to enable/disable desktop notifications

Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/1026
This commit is contained in:
Milan Crha
2022-04-20 13:43:41 +02:00
parent d85b81f19b
commit 6cba3eb5b4
2 changed files with 26 additions and 5 deletions

View File

@ -1120,6 +1120,12 @@ calendar_preferences_construct (ECalendarPreferences *prefs,
widget, "active",
G_SETTINGS_BIND_DEFAULT);
widget = e_builder_get_widget (prefs->priv->builder, "notify_enable_display");
g_settings_bind (
eds_calendar_settings, "notify-enable-display",
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",

View File

@ -1644,6 +1644,21 @@
<property name="position">2</property>
</packing>
</child>
<child>
<object class="GtkCheckButton" id="notify_enable_display">
<property name="label" translatable="yes">Enable de_sktop 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="notify_enable_audio">
<property name="label" translatable="yes">Enable _audio notifications</property>
@ -1656,7 +1671,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>
@ -1671,7 +1686,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>
@ -1686,7 +1701,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>
@ -1756,7 +1771,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">6</property>
<property name="position">7</property>
</packing>
</child>
<child>
@ -1826,7 +1841,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">7</property>
<property name="position">8</property>
</packing>
</child>
</object>