aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-07-14 21:02:55 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-07-14 21:02:55 -0500
commit0eaefcd97c91978aaefb2aecffa3d564559c894e (patch)
treea17fa62976ce3e3aeaea38fb2dd44986976d8653 /src
parent7c72153f3bf5fdb2f39803781a0f4f905f5bfa5b (diff)
downloadayatana-indicator-datetime-0eaefcd97c91978aaefb2aecffa3d564559c894e.tar.gz
ayatana-indicator-datetime-0eaefcd97c91978aaefb2aecffa3d564559c894e.tar.bz2
ayatana-indicator-datetime-0eaefcd97c91978aaefb2aecffa3d564559c894e.zip
remove use of deprecated API notify_notification_set_hint_string()
Diffstat (limited to 'src')
-rw-r--r--src/snap.cpp12
1 files changed, 6 insertions, 6 deletions
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);