From f82d29b6aea2437b5d366d167710bf7897ca24f8 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 7 Oct 2014 10:26:05 -0500 Subject: use a string for unity-notification's boolean types. --- src/notifier.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/notifier.c') diff --git a/src/notifier.c b/src/notifier.c index 1767146..1881649 100644 --- a/src/notifier.c +++ b/src/notifier.c @@ -216,8 +216,8 @@ notification_show(IndicatorPowerNotifier * self) if (actions_supported) { - notify_notification_set_hint(nn, "x-canonical-snap-decisions", g_variant_new_boolean(TRUE)); - notify_notification_set_hint(nn, "x-canonical-non-shaped-icon", g_variant_new_boolean(TRUE)); + notify_notification_set_hint(nn, "x-canonical-snap-decisions", g_variant_new_string("true")); + notify_notification_set_hint(nn, "x-canonical-non-shaped-icon", g_variant_new_string("true")); notify_notification_set_hint(nn, "x-canonical-snap-decisions-timeout", g_variant_new_int32(INT32_MAX)); notify_notification_set_timeout(nn, NOTIFY_EXPIRES_NEVER); notify_notification_add_action(nn, "dismiss", _("OK"), on_dismiss_clicked, NULL, NULL); -- cgit v1.2.3 From 01a0d943f4c985bfe924cbcdbcba1ae15615bf47 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 7 Oct 2014 10:58:22 -0500 Subject: confirmation buttons should be green, so add the 'affirmative-tint' hint for the OK button. --- src/notifier.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/notifier.c') diff --git a/src/notifier.c b/src/notifier.c index 1881649..993e332 100644 --- a/src/notifier.c +++ b/src/notifier.c @@ -218,6 +218,7 @@ notification_show(IndicatorPowerNotifier * self) { notify_notification_set_hint(nn, "x-canonical-snap-decisions", g_variant_new_string("true")); notify_notification_set_hint(nn, "x-canonical-non-shaped-icon", g_variant_new_string("true")); + notify_notification_set_hint(nn, "x-canonical-private-affirmative-tint", g_variant_new_string("true")); notify_notification_set_hint(nn, "x-canonical-snap-decisions-timeout", g_variant_new_int32(INT32_MAX)); notify_notification_set_timeout(nn, NOTIFY_EXPIRES_NEVER); notify_notification_add_action(nn, "dismiss", _("OK"), on_dismiss_clicked, NULL, NULL); -- cgit v1.2.3