diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-07-12 15:34:10 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-07-12 15:34:10 +0100 |
commit | 8f4dd989349434361a383f54917b08efd9af2d46 (patch) | |
tree | 7fae59d6256f8b6713db9b477c92f18dd0f73532 /src/title-menu-item.vala | |
parent | b0a09afe59a904ce4b4e90e58d933ad1f0b036d9 (diff) | |
parent | c653012e7a55de1a6ecabf798a7d86e87d4affc6 (diff) | |
download | ayatana-indicator-sound-8f4dd989349434361a383f54917b08efd9af2d46.tar.gz ayatana-indicator-sound-8f4dd989349434361a383f54917b08efd9af2d46.tar.bz2 ayatana-indicator-sound-8f4dd989349434361a383f54917b08efd9af2d46.zip |
merge with the static scope problems widget side, plus positioning fixes and image url handling robustness
Diffstat (limited to 'src/title-menu-item.vala')
-rw-r--r-- | src/title-menu-item.vala | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/title-menu-item.vala b/src/title-menu-item.vala index 612d279..8183821 100644 --- a/src/title-menu-item.vala +++ b/src/title-menu-item.vala @@ -23,15 +23,16 @@ using Gee; public class TitleMenuitem : PlayerItem { - public TitleMenuitem(PlayerController parent, string name) + public TitleMenuitem(PlayerController parent) { Object(item_type: MENUITEM_TYPE, owner: parent); - this.property_set(MENUITEM_TEXT_NAME, name); + this.property_set(MENUITEM_TEXT_NAME, parent.name); } 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()); + debug("handle_event for owner %s with owner state = %i and title menu name %s", this.owner.name, this.owner.current_state, property_get(MENUITEM_TEXT_NAME)); + if(this.owner.current_state == PlayerController.state.OFFLINE) { this.owner.instantiate(); |