[Galago-commits] r2882 - in trunk/libnotify: . libnotify

galago-commits at freedesktop.org galago-commits at freedesktop.org
Sat Jul 29 03:06:31 PDT 2006


Author: chipx86
Date: 2006-07-29 03:06:22 -0700 (Sat, 29 Jul 2006)
New Revision: 2882

Modified:
   trunk/libnotify/AUTHORS
   trunk/libnotify/ChangeLog
   trunk/libnotify/libnotify/notification.c
Log:
Patch by Ed Catmur to reset a notification's ID if notify_notification_show() is called on a notification that had already been closed. This causes the notification to receive a new ID. This closes ticket #78.


Modified: trunk/libnotify/AUTHORS
===================================================================
--- trunk/libnotify/AUTHORS	2006-07-29 09:46:22 UTC (rev 2881)
+++ trunk/libnotify/AUTHORS	2006-07-29 10:06:22 UTC (rev 2882)
@@ -13,3 +13,4 @@
 	jensgr at gmx.net
 	M.S.
 	mderezynski
+	Ed Catmur <ed at catmur.co.uk>

Modified: trunk/libnotify/ChangeLog
===================================================================
--- trunk/libnotify/ChangeLog	2006-07-29 09:46:22 UTC (rev 2881)
+++ trunk/libnotify/ChangeLog	2006-07-29 10:06:22 UTC (rev 2882)
@@ -1,3 +1,11 @@
+Sat Jul 29 03:02:18 PDT 2006  Christian Hammond <chipx86 at chipx86.com>
+
+	* libnotify/notification.c:
+	  - Patch by Ed Catmur to reset a notification's ID if
+	    notify_notification_show() is called on a notification that had
+	    already been closed. This causes the notification to receive a new
+	    ID. This closes ticket #78.
+
 Thu Jul 13 00:44:29 PDT 2006  Christian Hammond <chipx86 at chipx86.com>
 
 	* configure.ac:

Modified: trunk/libnotify/libnotify/notification.c
===================================================================
--- trunk/libnotify/libnotify/notification.c	2006-07-29 09:46:22 UTC (rev 2881)
+++ trunk/libnotify/libnotify/notification.c	2006-07-29 10:06:22 UTC (rev 2882)
@@ -675,6 +675,8 @@
 {
 	if (id == notification->priv->id)
 		g_signal_emit(notification, signals[SIGNAL_CLOSED], 0);
+
+	notification->priv->id = 0;
 }
 
 static void



More information about the galago-commits mailing list