[evolution-data-server] evo-I#326 - Reword "Display reminders in notification area only" option



commit 8b178307c8078e859f4c96873d2665d9ebe46920
Author: Milan Crha <mcrha redhat com>
Date:   Mon Mar 11 12:24:50 2019 +0100

    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

 src/services/evolution-alarm-notify/e-alarm-notify.c | 11 ++++++-----
 1 file 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]