aboutsummaryrefslogtreecommitdiff
path: root/src/specific-items-manager.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/specific-items-manager.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/specific-items-manager.vala')
-rw-r--r--src/specific-items-manager.vala6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/specific-items-manager.vala b/src/specific-items-manager.vala
index 1bfe03e..923cf3f 100644
--- a/src/specific-items-manager.vala
+++ b/src/specific-items-manager.vala
@@ -51,10 +51,12 @@ public class SpecificItemsManager : GLib.Object
{
int result = 0 ;
if (this.of_type == category.TRACK){
- result = this.owner.menu_offset + 4 + this.proxy_items.size;
+ result = this.owner.menu_offset + this.owner.WIDGET_QUANTITY + this.proxy_items.size;
}
else if (this.of_type == category.PLAYER){
- int pos = this.owner.menu_offset + 4 + this.owner.track_specific_count();
+ int pos = this.owner.menu_offset + this.owner.WIDGET_QUANTITY + this.owner.track_specific_count();
+ //Surely the playlists item is there whether its visible or not ?
+ //TODO test playlists and player specific item positioning.
pos += this.owner.use_playlists == true ? 1 : 0;
result = pos;
}