aboutsummaryrefslogtreecommitdiff
path: root/src/player-controller.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-06-21 19:36:21 +0100
committerConor Curran <conor.curran@canonical.com>2010-06-21 19:36:21 +0100
commit6e001f4e0606bce9d3eb070df97d44a7b10081c5 (patch)
tree74373818cebb4d313b7d6d7988b104e8e2ff85c5 /src/player-controller.vala
parent7be2c7248a0b29ea74e8e36db405d5974995a57b (diff)
downloadayatana-indicator-sound-6e001f4e0606bce9d3eb070df97d44a7b10081c5.tar.gz
ayatana-indicator-sound-6e001f4e0606bce9d3eb070df97d44a7b10081c5.tar.bz2
ayatana-indicator-sound-6e001f4e0606bce9d3eb070df97d44a7b10081c5.zip
wip
Diffstat (limited to 'src/player-controller.vala')
-rw-r--r--src/player-controller.vala17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/player-controller.vala b/src/player-controller.vala
index ef1e130..862bb29 100644
--- a/src/player-controller.vala
+++ b/src/player-controller.vala
@@ -23,13 +23,13 @@ using Gee;
public class PlayerController : GLib.Object
{
- private const int METADATA = 2;
+ public const int METADATA = 2;
private const int TRANSPORT = 3;
private Dbusmenu.Menuitem root_menu;
private string name;
private bool is_active;
- private ArrayList<PlayerItem> custom_items;
+ public ArrayList<PlayerItem> custom_items;
private MprisController mpris_adaptor;
public PlayerController(Dbusmenu.Menuitem root, string client_name, bool active)
@@ -47,7 +47,6 @@ public class PlayerController : GLib.Object
else{
this.mpris_adaptor = new MprisController(this.name, this);
}
-
this.custom_items[TRANSPORT].set_adaptor(this.mpris_adaptor);
}
@@ -81,12 +80,12 @@ public class PlayerController : GLib.Object
return true;
}
- public void update_playing_info(HashMap<string, string> data)
- {
- debug("PlayerController - update_playing_info");
- MetadataMenuitem item = this.custom_items[METADATA] as MetadataMenuitem;
- item.update(data);
- }
+ //public void update_playing_info(HashMap<string, string> data)
+ //{
+ // debug("PlayerController - update_playing_info");
+ // MetadataMenuitem item = this.custom_items[METADATA] as MetadataMenuitem;
+ // item.update(data, MetadataMenuitem.attributes_format());
+ //}
private static string format_client_name(string client_name)
{