Don't complain about an unknown action when the action is "default"

This commit is contained in:
Christian Hammond 2006-02-05 01:18:54 +00:00
parent d87a3fec52
commit cb2ee86909
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Sat Feb 04 17:18:38 PST 2006 Christian Hammond <chipx86@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@chipx86.com>
A tests/test-xy-actions.c:

View File

@ -354,10 +354,15 @@ _action_signal_handler(DBusGProxy *proxy, guint32 id, gchar *action,
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 **
_gslist_to_string_array(GSList *list)