aboutsummaryrefslogtreecommitdiff
path: root/src/mpris2-controller.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-09-09 18:47:00 +0100
committerConor Curran <conor.curran@canonical.com>2011-09-09 18:47:00 +0100
commitb6fb30caf2354f05dbe496c1a2820acd37a1f2bf (patch)
tree2e0e87f9d0048487f42e978e6841ee1b77687548 /src/mpris2-controller.vala
parent9f05fc93fc37dd326a68174be212cc23d270e00d (diff)
downloadayatana-indicator-sound-b6fb30caf2354f05dbe496c1a2820acd37a1f2bf.tar.gz
ayatana-indicator-sound-b6fb30caf2354f05dbe496c1a2820acd37a1f2bf.tar.bz2
ayatana-indicator-sound-b6fb30caf2354f05dbe496c1a2820acd37a1f2bf.zip
increased the max playlist count to 20, fixed a bug which was prohibiting the playlists being shown
Diffstat (limited to 'src/mpris2-controller.vala')
-rw-r--r--src/mpris2-controller.vala5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mpris2-controller.vala b/src/mpris2-controller.vala
index 8eeac08..ce35a06 100644
--- a/src/mpris2-controller.vala
+++ b/src/mpris2-controller.vala
@@ -21,11 +21,12 @@ using Transport;
public class Mpris2Controller : GLib.Object
{
+ public const int MAX_PLAYLIST_COUNT = 20;
+
public MprisRoot mpris2_root {get; construct;}
public MprisPlayer player {get; construct;}
public MprisPlaylists playlists {get; construct;}
public FreeDesktopProperties properties_interface {get; construct;}
-
public PlayerController owner {get; construct;}
public Mpris2Controller(PlayerController ctrl)
@@ -226,7 +227,7 @@ public class Mpris2Controller : GLib.Object
try{
current_playlists = yield this.playlists.GetPlaylists (0,
- 10,
+ MAX_PLAYLIST_COUNT,
"Alphabetical",
false);
}