aboutsummaryrefslogtreecommitdiff
path: root/src/mpris-controller.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-06-21 11:36:58 +0100
committerConor Curran <conor.curran@canonical.com>2010-06-21 11:36:58 +0100
commit1b9837ab2ddfac074149d020e700e9272579b211 (patch)
tree8f3906ac4bd479ec9c1ee3aede7152a20e20b848 /src/mpris-controller.vala
parent9bba58ee4dae536ce92f396854e2c0e671d9b7f0 (diff)
downloadayatana-indicator-sound-1b9837ab2ddfac074149d020e700e9272579b211.tar.gz
ayatana-indicator-sound-1b9837ab2ddfac074149d020e700e9272579b211.tar.bz2
ayatana-indicator-sound-1b9837ab2ddfac074149d020e700e9272579b211.zip
lots of changes
Diffstat (limited to 'src/mpris-controller.vala')
-rw-r--r--src/mpris-controller.vala13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mpris-controller.vala b/src/mpris-controller.vala
index 7e65594..cd1d2db 100644
--- a/src/mpris-controller.vala
+++ b/src/mpris-controller.vala
@@ -76,13 +76,12 @@ public class MprisController : GLib.Object
private void onStatusChange(dynamic DBus.Object mpris_client, status st)
{
debug("onStatusChange - signal received");
- //ValueArray a = new ValueArray(4);
- //Value v = new Value(typeof(int32));
- //v.set_int(st.playback);
- //a.append(v);
- //debug("onStatusChange - play %i", a.get_nth(0).get_int());
- //int playback = (ValueArray)st.get_nth(0).get_int();
- //int shuffle = ar.get_nth(1).get_int();
+ status* status = &st;
+ unowned ValueArray ar = (ValueArray)status;
+
+ int playback = ar.get_nth(0).get_int();
+ debug("onStatusChange - play %i", ar.get_nth(0).get_int());
+
//int repeat = ar.get_nth(2).get_int();
//int endless = ar.get_nth(3).get_int();
}