diff options
author | Ted Gould <ted@gould.cx> | 2014-10-22 16:00:18 -0400 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2014-10-22 16:00:18 -0400 |
commit | 9ab88593b90ee51361c4b4789daf11a2f1d08429 (patch) | |
tree | aa1df95a33708193ca1e04b67857ef87afec38b2 | |
parent | edf067bcf194607f0f51f0152e3ad5eb6d70d0be (diff) | |
download | ayatana-indicator-sound-9ab88593b90ee51361c4b4789daf11a2f1d08429.tar.gz ayatana-indicator-sound-9ab88593b90ee51361c4b4789daf11a2f1d08429.tar.bz2 ayatana-indicator-sound-9ab88593b90ee51361c4b4789daf11a2f1d08429.zip |
Remove usage of deprecated hint functions
-rw-r--r-- | src/service.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/service.vala b/src/service.vala index 2a65492..4298ad7 100644 --- a/src/service.vala +++ b/src/service.vala @@ -69,7 +69,7 @@ public class IndicatorSound.Service: Object { List<string> caps = Notify.get_server_caps (); if (caps.find_custom ("x-canonical-private-synchronous", strcmp) != null) { this.notification = new Notify.Notification ("indicator-sound", "", ""); - this.notification.set_hint_string ("x-canonical-private-synchronous", "indicator-sound"); + this.notification.set_hint ("x-canonical-private-synchronous", "indicator-sound"); } } @@ -186,7 +186,7 @@ public class IndicatorSound.Service: Object { icon = "notification-audio-volume-high"; this.notification.update ("indicator-sound", "", icon); - this.notification.set_hint_int32 ("value", ((int32) (100 * v / this.max_volume)).clamp (-1, 101)); + this.notification.set_hint ("value", ((int32) (100 * v / this.max_volume)).clamp (-1, 101)); try { this.notification.show (); } |