aboutsummaryrefslogtreecommitdiff
path: root/src/title-menu-item.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-07-07 13:22:18 +0100
committerConor Curran <conor.curran@canonical.com>2010-07-07 13:22:18 +0100
commit410965575fa1039cbcc6c6ef7f7ef316438118ed (patch)
tree1e83bc8e9647281b878fa496193acdc5e7c22cd2 /src/title-menu-item.vala
parent7555ea6755750dd64a6c4652b852a0bdc0d0bfeb (diff)
downloadayatana-indicator-sound-410965575fa1039cbcc6c6ef7f7ef316438118ed.tar.gz
ayatana-indicator-sound-410965575fa1039cbcc6c6ef7f7ef316438118ed.tar.bz2
ayatana-indicator-sound-410965575fa1039cbcc6c6ef7f7ef316438118ed.zip
alot of work around the title menu stuff
Diffstat (limited to 'src/title-menu-item.vala')
-rw-r--r--src/title-menu-item.vala15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/title-menu-item.vala b/src/title-menu-item.vala
index f29d970..0acd97f 100644
--- a/src/title-menu-item.vala
+++ b/src/title-menu-item.vala
@@ -23,11 +23,22 @@ using Gee;
public class TitleMenuitem : PlayerItem
{
- public TitleMenuitem()
+ public TitleMenuitem(PlayerController parent, string name)
{
- Object(item_type: MENUITEM_TYPE);
+ Object(item_type: MENUITEM_TYPE, owner: parent);
+ this.property_set(MENUITEM_TEXT_NAME, 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());
+ if(this.owner.current_state == PlayerController.OFFLINE)
+ {
+ this.owner.instantiate();
+ }
+ }
+
+
public static HashSet<string> attributes_format()
{
HashSet<string> attrs = new HashSet<string>();