From c653012e7a55de1a6ecabf798a7d86e87d4affc6 Mon Sep 17 00:00:00 2001 From: Conor Curran Date: Mon, 12 Jul 2010 14:46:13 +0100 Subject: caught by static scopeness - update bug fixed --- src/title-menu-item.vala | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/title-menu-item.vala') 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(); -- cgit v1.2.3