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

galago-commits at freedesktop.org galago-commits at freedesktop.org
Sat Feb 4 17:18:56 PST 2006


Author: chipx86
Date: 2006-02-04 17:18:54 -0800 (Sat, 04 Feb 2006)
New Revision: 2553

Modified:
   trunk/libnotify/ChangeLog
   trunk/libnotify/libnotify/notification.c
Log:
Don't complain about an unknown action when the action is "default"


Modified: trunk/libnotify/ChangeLog
===================================================================
--- trunk/libnotify/ChangeLog	2006-02-05 00:40:12 UTC (rev 2552)
+++ trunk/libnotify/ChangeLog	2006-02-05 01:18:54 UTC (rev 2553)
@@ -1,3 +1,8 @@
+Sat Feb 04 17:18:38 PST 2006  Christian Hammond <chipx86 at chipx86.com>
+
+	* libnotify/notification.c:
+	  - Don't complain about an unknown action when the action is "default"
+
 Sat Feb 04 13:29:22 PST 2006  Christian Hammond <chipx86 at chipx86.com>
 
 	A tests/test-xy-actions.c:

Modified: trunk/libnotify/libnotify/notification.c
===================================================================
--- trunk/libnotify/libnotify/notification.c	2006-02-05 00:40:12 UTC (rev 2552)
+++ trunk/libnotify/libnotify/notification.c	2006-02-05 01:18:54 UTC (rev 2553)
@@ -354,9 +354,14 @@
 		notification->priv->action_map, action);
 
 	if (pair == NULL)
-		g_warning("Recieved unknown action %s", action);
+	{
+		if (g_ascii_strcasecmp(action, "default"))
+			g_warning("Received unknown action %s", action);
+	}
 	else
+	{
 		pair->cb(notification, action, pair->user_data);
+	}
 }
 
 static gchar **



More information about the galago-commits mailing list