aboutsummaryrefslogtreecommitdiff
path: root/src/player-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/player-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/player-item.vala')
-rw-r--r--src/player-item.vala33
1 files changed, 1 insertions, 32 deletions
diff --git a/src/player-item.vala b/src/player-item.vala
index 88e1dd3..171c140 100644
--- a/src/player-item.vala
+++ b/src/player-item.vala
@@ -22,8 +22,7 @@ using Gee;
public class PlayerItem : Dbusmenu.Menuitem
{
-
- public MprisController mpris_adaptor;
+ public PlayerController owner {get; construct;}
public string item_type { get; construct; }
public PlayerItem(string type)
@@ -32,7 +31,6 @@ public class PlayerItem : Dbusmenu.Menuitem
}
construct {
- debug("in the base constructor for %s", item_type);
this.property_set(MENUITEM_PROP_TYPE, item_type);
}
@@ -68,15 +66,8 @@ public class PlayerItem : Dbusmenu.Menuitem
this.property_set_bool(property, v.get_boolean());
}
}
- // TODO: not working
- //this.check_layout();
}
- public void set_adaptor(MprisController adaptor)
- {
- this.mpris_adaptor = adaptor;
- }
-
private static bool ensure_valid_updates(HashTable<string, Value?> data, HashSet<string> attributes)
{
if(data == null){
@@ -99,27 +90,5 @@ public class PlayerItem : Dbusmenu.Menuitem
return result;
}
-
- //----- Custom constructors for player items ----------------//
- // Title item
- //public static PlayerItem new_title_item(dynamic string name)
- //{
- // PlayerItem item = new PlayerItem();
- // item.property_set(MENUITEM_PROP_LABEL, name);
- // item.property_set(MENUITEM_PROP_ICON_NAME, "applications-multimedia");
- // return item;
- //}
-
- // Separator item
- public static PlayerItem new_separator_item()
- {
- PlayerItem separator = new PlayerItem(CLIENT_TYPES_SEPARATOR);
- //separator.property_set(MENUITEM_PROP_TYPE, CLIENT_TYPES_SEPARATOR);
- return separator;
- }
-
- public virtual void check_layout(){
- warning("this should not be hit");
- }
}