Don't complain about an unknown action when the action is "default"
This commit is contained in:
parent
d87a3fec52
commit
cb2ee86909
|
@ -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:
|
||||
|
|
|
@ -354,9 +354,14 @@ _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 **
|
||||
|
|
Loading…
Reference in New Issue