aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-05-16 11:04:46 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-05-16 11:06:49 +0200
commit394a06ba9f8ff0cc95bc7dba8fc626a3ea4aa9bd (patch)
tree6371a68dc395d4ad0fdfec107c08a58d88e96e9f
parent2a7ebff68f86a634c674076e7bc759156db6b94c (diff)
downloadayatana-indicator-power-394a06ba9f8ff0cc95bc7dba8fc626a3ea4aa9bd.tar.gz
ayatana-indicator-power-394a06ba9f8ff0cc95bc7dba8fc626a3ea4aa9bd.tar.bz2
ayatana-indicator-power-394a06ba9f8ff0cc95bc7dba8fc626a3ea4aa9bd.zip
Fixup previous commit. More x-canonical-* type changes.
-rw-r--r--src/notifier.c8
-rw-r--r--tests/test-notify.cc2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/notifier.c b/src/notifier.c
index 8a799f4..350562e 100644
--- a/src/notifier.c
+++ b/src/notifier.c
@@ -234,10 +234,10 @@ notification_show(IndicatorPowerNotifier * self)
if (are_actions_supported(self))
{
- notify_notification_set_hint(nn, "x-ayatana-snap-decisions", g_variant_new_string("true"));
- notify_notification_set_hint(nn, "x-ayatana-non-shaped-icon", g_variant_new_string("true"));
- notify_notification_set_hint(nn, "x-ayatana-private-affirmative-tint", g_variant_new_string("true"));
- notify_notification_set_hint(nn, "x-ayatana-snap-decisions-timeout", g_variant_new_int32(INT32_MAX));
+ 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);
}
diff --git a/tests/test-notify.cc b/tests/test-notify.cc
index f8a5517..a7e2beb 100644
--- a/tests/test-notify.cc
+++ b/tests/test-notify.cc
@@ -69,7 +69,7 @@ protected:
static constexpr char const * METHOD_GET_INFO {"GetServerInformation"};
static constexpr char const * SIGNAL_CLOSED {"NotificationClosed"};
- static constexpr char const * HINT_TIMEOUT {"x-ayatana-snap-decisions-timeout"};
+ static constexpr char const * HINT_TIMEOUT {"x-canonical-snap-decisions-timeout"};
protected: