[gnome-todo] notification: send ::executed signal even when no primary action is set



commit 4b03849e72c88e1ff7070cc3e6125ae86d590ec3
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri Aug 28 09:38:14 2015 -0300

    notification: send ::executed signal even when no primary action is set

 src/notification/gtd-notification.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/notification/gtd-notification.c b/src/notification/gtd-notification.c
index ebe931d..587c626 100644
--- a/src/notification/gtd-notification.c
+++ b/src/notification/gtd-notification.c
@@ -457,11 +457,9 @@ gtd_notification_execute_primary_action (GtdNotification *notification)
   priv = notification->priv;
 
   if (priv->primary_action)
-    {
-      priv->primary_action (notification, priv->primary_action_data);
+    priv->primary_action (notification, priv->primary_action_data);
 
-      g_signal_emit (notification, signals[EXECUTED], 0);
-    }
+  g_signal_emit (notification, signals[EXECUTED], 0);
 }
 
 /**
@@ -484,6 +482,8 @@ gtd_notification_execute_secondary_action (GtdNotification *notification)
     {
       priv->secondary_action (notification, priv->secondary_action_data);
 
+      gtd_notification_stop (notification);
+
       g_signal_emit (notification, signals[EXECUTED], 0);
     }
 }


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