aboutsummaryrefslogtreecommitdiff
path: root/src/service.vala
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-11-05 10:30:49 -0600
committerTed Gould <ted@gould.cx>2014-11-05 10:30:49 -0600
commit409dc37e0cf9bc5229d134f145315fb19c916769 (patch)
tree41b578e58abc5c861434ad11d7da369760b84eda /src/service.vala
parentdec2d5350f47e52539941b45d394516066a19678 (diff)
parent9ab88593b90ee51361c4b4789daf11a2f1d08429 (diff)
downloadayatana-indicator-sound-409dc37e0cf9bc5229d134f145315fb19c916769.tar.gz
ayatana-indicator-sound-409dc37e0cf9bc5229d134f145315fb19c916769.tar.bz2
ayatana-indicator-sound-409dc37e0cf9bc5229d134f145315fb19c916769.zip
Remove various Vala warnings
Diffstat (limited to 'src/service.vala')
-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 ();
}