diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-06-22 11:31:31 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-06-22 11:31:31 +0100 |
commit | 770b3266e2e7a92efb220f990d10ee0e36577b0f (patch) | |
tree | f50a3ea7914fe3b26da2a83ae3e6ed05fc375948 /src/transport-menu-item.vala | |
parent | 3c42ee89d903f2bd1a239f2e3e8c236bfe2ef2ba (diff) | |
download | ayatana-indicator-sound-770b3266e2e7a92efb220f990d10ee0e36577b0f.tar.gz ayatana-indicator-sound-770b3266e2e7a92efb220f990d10ee0e36577b0f.tar.bz2 ayatana-indicator-sound-770b3266e2e7a92efb220f990d10ee0e36577b0f.zip |
automatic updates at start up now working properly - still vala oddities to solve but functionality has not been hampered
Diffstat (limited to 'src/transport-menu-item.vala')
-rw-r--r-- | src/transport-menu-item.vala | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/transport-menu-item.vala b/src/transport-menu-item.vala index aae07cc..c8733c0 100644 --- a/src/transport-menu-item.vala +++ b/src/transport-menu-item.vala @@ -28,10 +28,14 @@ public class TransportMenuitem : PlayerItem public TransportMenuitem() { this.property_set(MENUITEM_PROP_TYPE, MENUITEM_TYPE); - this.property_set_bool(MENUITEM_STATE, false); debug("transport on the vala side"); } + public void change_play_state(int state) + { + this.property_set_int(MENUITEM_PLAY_STATE, state); + } + 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()); @@ -41,7 +45,7 @@ public class TransportMenuitem : PlayerItem public static HashSet<string> attributes_format() { HashSet<string> attrs = new HashSet<string>(); - attrs.add(MENUITEM_STATE); + attrs.add(MENUITEM_PLAY_STATE); return attrs; } }
\ No newline at end of file |