From 4eaae59a683993a585b795d8bbfa1863c2b294de Mon Sep 17 00:00:00 2001 From: Christian Hammond Date: Sun, 5 Nov 2006 19:52:25 +0000 Subject: [PATCH] Patch by jylefort to only reset a notification's ID to 0 if it was the notification closed. This fixes bug #94. --- ChangeLog | 6 ++++++ libnotify/notification.c | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b40d4bb..a583293 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sun Nov 05 11:50:44 PST 2006 Christian Hammond + + * libnotify/notification.c: + - Patch by jylefort to only reset a notification's ID to 0 if it + was the notification closed. This fixes bug #94. + ========================= 0.4.3 ========================= Sun Oct 08 13:21:20 EDT 2006 Christian Hammond diff --git a/libnotify/notification.c b/libnotify/notification.c index 9645f46..c7c8b24 100644 --- a/libnotify/notification.c +++ b/libnotify/notification.c @@ -674,9 +674,11 @@ _close_signal_handler(DBusGProxy *proxy, guint32 id, NotifyNotification *notification) { if (id == notification->priv->id) + { g_signal_emit(notification, signals[SIGNAL_CLOSED], 0); - notification->priv->id = 0; + notification->priv->id = 0; + } } static void