Fix has_nondefault_actions never getting set

Due to an oversight in the condition, has_nondefault_actions is
never set to true.  Not sure this makes a _big_ difference in practice.

http://trac.galago-project.org/ticket/194
This commit is contained in:
Matthias Clasen 2010-01-09 13:13:15 -05:00 committed by William Jon McCann
parent 732437ffc0
commit 4b11bb71cf
1 changed files with 2 additions and 2 deletions

View File

@ -1263,8 +1263,8 @@ notify_notification_add_action(NotifyNotification *notification,
pair->free_func = free_func;
g_hash_table_insert(priv->action_map, g_strdup(action), pair);
if (notification->priv->has_nondefault_actions &&
g_ascii_strcasecmp(action, "default"))
if (!notification->priv->has_nondefault_actions &&
g_ascii_strcasecmp(action, "default") != 0)
{
notification->priv->has_nondefault_actions = TRUE;
}