aboutsummaryrefslogtreecommitdiff
path: root/src/player-controller.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-06-24 17:23:39 +0100
committerConor Curran <conor.curran@canonical.com>2010-06-24 17:23:39 +0100
commit81d9af3fc3f1d3784e623ede592e6d91032353ad (patch)
tree5721aa695a55e8179b75c998cc75089b8d820f6a /src/player-controller.vala
parent98c55dde34ae7ed062ae22712b998ef4787b14ee (diff)
downloadayatana-indicator-sound-81d9af3fc3f1d3784e623ede592e6d91032353ad.tar.gz
ayatana-indicator-sound-81d9af3fc3f1d3784e623ede592e6d91032353ad.tar.bz2
ayatana-indicator-sound-81d9af3fc3f1d3784e623ede592e6d91032353ad.zip
moving towards offline application launching
Diffstat (limited to 'src/player-controller.vala')
-rw-r--r--src/player-controller.vala14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/player-controller.vala b/src/player-controller.vala
index 862bb29..0d8dc01 100644
--- a/src/player-controller.vala
+++ b/src/player-controller.vala
@@ -31,7 +31,8 @@ public class PlayerController : GLib.Object
private bool is_active;
public ArrayList<PlayerItem> custom_items;
private MprisController mpris_adaptor;
-
+ private string desktop_path;
+
public PlayerController(Dbusmenu.Menuitem root, string client_name, bool active)
{
this.root_menu = root;
@@ -48,6 +49,10 @@ public class PlayerController : GLib.Object
this.mpris_adaptor = new MprisController(this.name, this);
}
this.custom_items[TRANSPORT].set_adaptor(this.mpris_adaptor);
+
+ // At start up if there is no metadata then hide the item.
+ // TODO: NOT working -> dbus menu bug ?
+ //((MetadataMenuitem)this.custom_items[METADATA]).check_layout();
}
public void vanish()
@@ -80,13 +85,6 @@ 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, MetadataMenuitem.attributes_format());
- //}
-
private static string format_client_name(string client_name)
{
string formatted = client_name;