diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-07-07 17:50:02 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-07-07 17:50:02 +0100 |
commit | 3a06565090107aef0ab7bc22b9ab5c965a729746 (patch) | |
tree | 4688b2639eeef2b4cb424358da742e853a902952 /src/transport-menu-item.vala | |
parent | 6eef19e54ead5184d2cb136d3e6fdacc6eef37bf (diff) | |
parent | b41d94677b3471742fa957cc4f60381d8f67ea5d (diff) | |
download | ayatana-indicator-sound-3a06565090107aef0ab7bc22b9ab5c965a729746.tar.gz ayatana-indicator-sound-3a06565090107aef0ab7bc22b9ab5c965a729746.tar.bz2 ayatana-indicator-sound-3a06565090107aef0ab7bc22b9ab5c965a729746.zip |
merged the last of the libindicate work
Diffstat (limited to 'src/transport-menu-item.vala')
-rw-r--r-- | src/transport-menu-item.vala | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/transport-menu-item.vala b/src/transport-menu-item.vala index 264e153..7a1bb4a 100644 --- a/src/transport-menu-item.vala +++ b/src/transport-menu-item.vala @@ -24,10 +24,9 @@ using DbusmenuTransport; public class TransportMenuitem : PlayerItem { - public TransportMenuitem() + public TransportMenuitem(PlayerController parent) { - this.property_set(MENUITEM_PROP_TYPE, MENUITEM_TYPE); - debug("transport on the vala side"); + Object(item_type: MENUITEM_TYPE, owner: parent); } public void change_play_state(int state) @@ -38,13 +37,8 @@ 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.mpris_adaptor.toggle_playback(input_value.get_boolean()); - } - - public override void check_layout(){ - // nothing to be done for this item - always active - } - + this.owner.mpris_adaptor.toggle_playback(input_value.get_boolean()); + } public static HashSet<string> attributes_format() { |