aboutsummaryrefslogtreecommitdiff
path: root/src/transport-menu-item.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-07-08 16:12:59 +0100
committerConor Curran <conor.curran@canonical.com>2010-07-08 16:12:59 +0100
commite4f900efd1e48814a70e4351cc3d878312daef37 (patch)
treecbedf03dba7641079e1f7aa68b4c325a6d5044b3 /src/transport-menu-item.vala
parent41747b032d2032c97fd7f1766157e2d846626880 (diff)
downloadayatana-indicator-sound-e4f900efd1e48814a70e4351cc3d878312daef37.tar.gz
ayatana-indicator-sound-e4f900efd1e48814a70e4351cc3d878312daef37.tar.bz2
ayatana-indicator-sound-e4f900efd1e48814a70e4351cc3d878312daef37.zip
event handling now plugged in crudely
Diffstat (limited to 'src/transport-menu-item.vala')
-rw-r--r--src/transport-menu-item.vala10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/transport-menu-item.vala b/src/transport-menu-item.vala
index 7a1bb4a..7e7bedc 100644
--- a/src/transport-menu-item.vala
+++ b/src/transport-menu-item.vala
@@ -36,8 +36,14 @@ public class TransportMenuitem : PlayerItem
public override void handle_event(string name, GLib.Value input_value, uint timestamp)
{
- debug("handle_event with bool value %s", input_value.get_boolean().to_string());
- this.owner.mpris_adaptor.toggle_playback(input_value.get_boolean());
+ int input = input_value.get_int();
+ debug("handle_event with value %s", input.to_string());
+ if(input > 0){
+ this.owner.mpris_adaptor.transport_event(input);
+ }
+ else{
+ debug("A mouse event I'm not interested in");
+ }
}
public static HashSet<string> attributes_format()