summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2019-03-11 12:24:50 +0100
committerMilan Crha <mcrha@redhat.com>2019-03-11 12:24:50 +0100
commit8b178307c8078e859f4c96873d2665d9ebe46920 (patch)
tree20b026d3a2bea27837be51c9d082f0faa8ea2e14
parentcf2c5e0f02ceaa01a33115164fe7c641b87435b7 (diff)
downloadevolution-data-server-8b178307c8078e859f4c96873d2665d9ebe46920.tar.gz
evo-I#326 - Reword "Display reminders in notification area only" option
Related to https://gitlab.gnome.org/GNOME/evolution/issues/326 Related to https://gitlab.gnome.org/GNOME/evolution/merge_requests/7
-rw-r--r--src/services/evolution-alarm-notify/e-alarm-notify.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/services/evolution-alarm-notify/e-alarm-notify.c b/src/services/evolution-alarm-notify/e-alarm-notify.c
index 96a8f2993..4f89fef45 100644
--- a/src/services/evolution-alarm-notify/e-alarm-notify.c
+++ b/src/services/evolution-alarm-notify/e-alarm-notify.c
@@ -661,11 +661,12 @@ e_alarm_notify_status_icon_popup_menu_cb (GtkStatusIcon *status_icon,
struct _items {
const gchar *label;
const gchar *opt_name;
+ guint32 binding_flags;
} items[] = {
- { N_("Display reminders in notification area _only"), "notify-with-tray" },
- { N_("Keep reminder notification window always on _top"), "notify-window-on-top" },
- { N_("Display reminders for _completed tasks"), "notify-completed-tasks" },
- { N_("Display reminders for _past events"), "notify-past-events" }
+ { N_("Display Reminders window with _notifications"), "notify-with-tray", G_SETTINGS_BIND_DEFAULT | G_SETTINGS_BIND_INVERT_BOOLEAN },
+ { N_("Keep reminder notification window always on _top"), "notify-window-on-top", G_SETTINGS_BIND_DEFAULT },
+ { N_("Display reminders for _completed tasks"), "notify-completed-tasks", G_SETTINGS_BIND_DEFAULT },
+ { N_("Display reminders for _past events"), "notify-past-events", G_SETTINGS_BIND_DEFAULT }
};
EAlarmNotify *an = user_data;
@@ -692,7 +693,7 @@ e_alarm_notify_status_icon_popup_menu_cb (GtkStatusIcon *status_icon,
g_settings_bind (an->priv->settings, items[ii].opt_name,
item, "active",
- G_SETTINGS_BIND_DEFAULT);
+ items[ii].binding_flags);
}
g_signal_connect (popup_menu, "deactivate", G_CALLBACK (e_alarm_notify_schedule_popup_destroy), NULL);