aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorXavi Garcia Mena <xavi.garcia.mena@canonical.com>2015-12-02 14:44:58 +0100
committerXavi Garcia Mena <xavi.garcia.mena@canonical.com>2015-12-02 14:44:58 +0100
commitd9a00604c1d8e3103444053da39a4af17230903b (patch)
treea58e2a32d3e7c9fd603be00262914612e2efb902 /src
parent7c69f81a079a08d58241cc50365dde7d37ad3345 (diff)
downloadayatana-indicator-sound-d9a00604c1d8e3103444053da39a4af17230903b.tar.gz
ayatana-indicator-sound-d9a00604c1d8e3103444053da39a4af17230903b.tar.bz2
ayatana-indicator-sound-d9a00604c1d8e3103444053da39a4af17230903b.zip
Added integration tests
Diffstat (limited to 'src')
-rw-r--r--src/service.vala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/service.vala b/src/service.vala
index 8f90547..3ac6b89 100644
--- a/src/service.vala
+++ b/src/service.vala
@@ -43,7 +43,7 @@ public class IndicatorSound.Service: Object {
warn_notification.closed.connect((n) => {
n.clear_actions();
waiting_user_approve_warn=false;
- volume_sync_action.set_state(volume_sync_number_++);
+ volume_sync_action.set_state(new Variant.uint64 (++volume_sync_number_));
});
BusWatcher.watch_namespace (GLib.BusType.SESSION,
"org.freedesktop.Notifications",
@@ -639,7 +639,7 @@ public class IndicatorSound.Service: Object {
warn_notification.add_action ("cancel", _("Cancel"), (n, a) => {
_pre_warn_volume = null;
waiting_user_approve_warn = false;
- volume_sync_action.set_state(volume_sync_number_++);
+ volume_sync_action.set_state(new Variant.uint64 (++volume_sync_number_));
});
waiting_user_approve_warn = true;
show_notification(warn_notification);
@@ -827,7 +827,7 @@ public class IndicatorSound.Service: Object {
SimpleAction volume_sync_action;
uint64 volume_sync_number_ = 0;
Action create_volume_sync_action () {
- volume_sync_action = new SimpleAction.stateful("volume-sync", null, new Variant.uint64 (volume_sync_number_));
+ volume_sync_action = new SimpleAction.stateful("volume-sync", VariantType.UINT64, new Variant.uint64 (volume_sync_number_));
return volume_sync_action;
}