diff options
author | Conor Curran <conor.curran@canonical.com> | 2011-08-10 13:41:08 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2011-08-10 13:41:08 +0100 |
commit | 023090260c73fad2f22c8937fad70215d56319d1 (patch) | |
tree | 0b7e27a0c06c038c8b19633e281d065751f18074 /src/player-controller.vala | |
parent | 8594ebfd7953488650107625622cba9f343c051f (diff) | |
download | ayatana-indicator-sound-023090260c73fad2f22c8937fad70215d56319d1.tar.gz ayatana-indicator-sound-023090260c73fad2f22c8937fad70215d56319d1.tar.bz2 ayatana-indicator-sound-023090260c73fad2f22c8937fad70215d56319d1.zip |
track specific ordering correct, player specific under way
Diffstat (limited to 'src/player-controller.vala')
-rw-r--r-- | src/player-controller.vala | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/player-controller.vala b/src/player-controller.vala index bd8b6ad..f46d36b 100644 --- a/src/player-controller.vala +++ b/src/player-controller.vala @@ -116,10 +116,19 @@ public class PlayerController : GLib.Object public void enable_player_specific_items (string object_path) { + debug ("Player specific item"); player_specific_mgr = new SpecificItemsManager (this, object_path, SpecificItemsManager.category.PLAYER); } + + public int track_specific_count () + { + if (this.track_specific_mgr == null) { + return 0; + } + return this.track_specific_mgr.proxy_items.size; + } private void establish_mpris_connection() { @@ -210,7 +219,7 @@ public class PlayerController : GLib.Object } } } - + private void determine_state() { if(this.mpris_bridge.connected() == true){ |