From 0eaefcd97c91978aaefb2aecffa3d564559c894e Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Mon, 14 Jul 2014 21:02:55 -0500 Subject: remove use of deprecated API notify_notification_set_hint_string() --- src/snap.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/snap.cpp b/src/snap.cpp index 4495287..11c946a 100644 --- a/src/snap.cpp +++ b/src/snap.cpp @@ -260,12 +260,12 @@ private: m_nn = notify_notification_new(title, body.c_str(), icon_name); if (m_interactive) { - notify_notification_set_hint_string(m_nn, - "x-canonical-snap-decisions", - "true"); - notify_notification_set_hint_string(m_nn, - "x-canonical-private-button-tint", - "true"); + notify_notification_set_hint(m_nn, + "x-canonical-snap-decisions", + g_variant_new_boolean(true)); + notify_notification_set_hint(m_nn, + "x-canonical-private-button-tint", + g_variant_new_boolean(true)); /// alarm popup dialog's button to show the active alarm notify_notification_add_action(m_nn, "show", _("Show"), on_snap_show, this, nullptr); -- cgit v1.2.3