[Xfce4-commits] [apps/xfce4-notifyd] 01/01: panel-plugin: Set the correct default DND state/icon

noreply at xfce.org noreply at xfce.org
Sat Oct 28 01:06:09 CEST 2017


This is an automated email from the git hooks/post-receive script.

o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-notifyd.

commit d76a41e091bc7e110dcffe91c30a1ee263c49f2d
Author: Christian Hesse <mail at eworm.de>
Date:   Sat Oct 28 00:10:42 2017 +0200

    panel-plugin: Set the correct default DND state/icon
    
    The default is do-not-disturb mode disabled.
    
    Signed-off-by: Christian Hesse <mail at eworm.de>
---
 panel-plugin/notification-plugin-log.c | 2 +-
 panel-plugin/notification-plugin.c     | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/panel-plugin/notification-plugin-log.c b/panel-plugin/notification-plugin-log.c
index a6adaa4..3ce1f77 100644
--- a/panel-plugin/notification-plugin-log.c
+++ b/panel-plugin/notification-plugin-log.c
@@ -247,7 +247,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS
   gtk_widget_show (mi);
 
   /* Reset the notification status icon since all items are now read */
-  if (xfconf_channel_get_bool (notification_plugin->channel, "/do-not-disturb", TRUE))
+  if (xfconf_channel_get_bool (notification_plugin->channel, "/do-not-disturb", FALSE))
     gtk_image_set_from_icon_name (GTK_IMAGE (notification_plugin->image),
                                   "notification-disabled-symbolic", GTK_ICON_SIZE_MENU);
   else
diff --git a/panel-plugin/notification-plugin.c b/panel-plugin/notification-plugin.c
index a91ab1b..3e20f8d 100644
--- a/panel-plugin/notification-plugin.c
+++ b/panel-plugin/notification-plugin.c
@@ -162,7 +162,7 @@ notification_plugin_log_file_changed (GFileMonitor     *monitor,
      there are new notifications */
   if (event_type == G_FILE_MONITOR_EVENT_DELETED)
   {
-    if (xfconf_channel_get_bool (notification_plugin->channel, "/do-not-disturb", TRUE))
+    if (xfconf_channel_get_bool (notification_plugin->channel, "/do-not-disturb", FALSE))
       gtk_image_set_from_icon_name (GTK_IMAGE (notification_plugin->image),
                                     "notification-disabled-symbolic", GTK_ICON_SIZE_MENU);
     else
@@ -171,7 +171,7 @@ notification_plugin_log_file_changed (GFileMonitor     *monitor,
   }
   else if (event_type == G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT)
   {
-    if (xfconf_channel_get_bool (notification_plugin->channel, "/do-not-disturb", TRUE))
+    if (xfconf_channel_get_bool (notification_plugin->channel, "/do-not-disturb", FALSE))
       gtk_image_set_from_icon_name (GTK_IMAGE (notification_plugin->image),
                                     "notification-disabled-new-symbolic", GTK_ICON_SIZE_MENU);
     else
@@ -202,7 +202,7 @@ notification_plugin_new (XfcePanelPlugin *panel_plugin)
   xfce_panel_plugin_set_small (panel_plugin, TRUE);
   notification_plugin->button = xfce_panel_create_toggle_button ();
   gtk_widget_set_tooltip_text (GTK_WIDGET (notification_plugin->button), _("Notifications"));
-  if (xfconf_channel_get_bool (notification_plugin->channel, "/do-not-disturb", TRUE))
+  if (xfconf_channel_get_bool (notification_plugin->channel, "/do-not-disturb", FALSE))
     notification_plugin->image = gtk_image_new_from_icon_name ("notification-disabled-symbolic", GTK_ICON_SIZE_MENU);
   else
     notification_plugin->image = gtk_image_new_from_icon_name ("notification-symbolic", GTK_ICON_SIZE_MENU);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list