[libnotify] Fix has_nondefault_actions never getting set
- From: William Jon McCann <mccann src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libnotify] Fix has_nondefault_actions never getting set
- Date: Sat, 9 Jan 2010 18:40:52 +0000 (UTC)
commit 4b11bb71cfd065f874cac217e3b7abef5c2d1267
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Jan 9 13:13:15 2010 -0500
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
libnotify/notification.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libnotify/notification.c b/libnotify/notification.c
index 76ace75..115ded3 100644
--- a/libnotify/notification.c
+++ b/libnotify/notification.c
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]