aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-10-22 16:00:18 -0400
committerTed Gould <ted@gould.cx>2014-10-22 16:00:18 -0400
commit9ab88593b90ee51361c4b4789daf11a2f1d08429 (patch)
treeaa1df95a33708193ca1e04b67857ef87afec38b2
parentedf067bcf194607f0f51f0152e3ad5eb6d70d0be (diff)
downloadayatana-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.vala4
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 ();
}