aboutsummaryrefslogtreecommitdiff
path: root/src/transport-menu-item.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-01-10 12:57:35 +0000
committerConor Curran <conor.curran@canonical.com>2011-01-10 12:57:35 +0000
commite102f3b357c8ee39efde7406d7abfed5c0d16998 (patch)
treef5fd06da6f6a70574b058c14a921fe33c7b7ae46 /src/transport-menu-item.vala
parent34cc781067306d2c3f78f1ffd92c8fff734257f2 (diff)
downloadayatana-indicator-sound-e102f3b357c8ee39efde7406d7abfed5c0d16998.tar.gz
ayatana-indicator-sound-e102f3b357c8ee39efde7406d7abfed5c0d16998.tar.bz2
ayatana-indicator-sound-e102f3b357c8ee39efde7406d7abfed5c0d16998.zip
porting in progress
Diffstat (limited to 'src/transport-menu-item.vala')
-rw-r--r--src/transport-menu-item.vala8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/transport-menu-item.vala b/src/transport-menu-item.vala
index 0e4e6ee..55ee3b3 100644
--- a/src/transport-menu-item.vala
+++ b/src/transport-menu-item.vala
@@ -36,8 +36,8 @@ public class TransportMenuitem : PlayerItem
public TransportMenuitem(PlayerController parent)
{
- Object(item_type: MENUITEM_TYPE, owner: parent);
- this.property_set_int(MENUITEM_PLAY_STATE, 1);
+ Object(item_type: MENUITEM_TYPE, owner: parent);
+ this.property_set_int(MENUITEM_PLAY_STATE, 1);
}
public void change_play_state(state update)
@@ -47,9 +47,9 @@ public class TransportMenuitem : PlayerItem
this.property_set_int(MENUITEM_PLAY_STATE, update);
}
- public override void handle_event(string name, GLib.Value input_value, uint timestamp)
+ public override void handle_event(string name, Variant input_value, uint timestamp)
{
- int input = input_value.get_int();
+ int input = input_value.get_int32();
debug("handle_event with value %s", input.to_string());
debug("transport owner name = %s", this.owner.app_info.get_name());
this.owner.mpris_bridge.transport_update((action)input);