Patch by jylefort to only reset a notification's ID to 0 if it was the notification closed. This fixes bug #94.

This commit is contained in:
Christian Hammond 2006-11-05 19:52:25 +00:00
parent cfdf35c002
commit 4eaae59a68
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,9 @@
Sun Nov 05 11:50:44 PST 2006 Christian Hammond <chipx86@chipx86.com>
* 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 <chipx86@chipx86.com>

View File

@ -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;
}
}
static void