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:
parent
732437ffc0
commit
4b11bb71cf
|
@ -1263,8 +1263,8 @@ notify_notification_add_action(NotifyNotification *notification,
|
||||||
pair->free_func = free_func;
|
pair->free_func = free_func;
|
||||||
g_hash_table_insert(priv->action_map, g_strdup(action), pair);
|
g_hash_table_insert(priv->action_map, g_strdup(action), pair);
|
||||||
|
|
||||||
if (notification->priv->has_nondefault_actions &&
|
if (!notification->priv->has_nondefault_actions &&
|
||||||
g_ascii_strcasecmp(action, "default"))
|
g_ascii_strcasecmp(action, "default") != 0)
|
||||||
{
|
{
|
||||||
notification->priv->has_nondefault_actions = TRUE;
|
notification->priv->has_nondefault_actions = TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue