aboutsummaryrefslogtreecommitdiff
path: root/src/specific-items-manager.vala
diff options
context:
space:
mode:
authorDidier Roche <didrocks@ubuntu.com>2011-09-13 12:20:29 +0200
committerPackage Import Robot <package-import@ubuntu.com>2011-09-13 12:20:29 +0200
commit22c7d6a1bfd61a4f5e81279d4b01063a096f19e0 (patch)
tree478abffce952d0262fac71485745dcd9a7733135 /src/specific-items-manager.vala
parentd13e523b7aa582734b3d4bc06735cfa00fb318e3 (diff)
parent886588b78ecf730719b5f5686e7a277dde27515d (diff)
downloadayatana-indicator-sound-22c7d6a1bfd61a4f5e81279d4b01063a096f19e0.tar.gz
ayatana-indicator-sound-22c7d6a1bfd61a4f5e81279d4b01063a096f19e0.tar.bz2
ayatana-indicator-sound-22c7d6a1bfd61a4f5e81279d4b01063a096f19e0.zip
* New upstream release
* add 01_fix_FTBFS.patch for needed -lm link
Diffstat (limited to 'src/specific-items-manager.vala')
-rw-r--r--src/specific-items-manager.vala8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/specific-items-manager.vala b/src/specific-items-manager.vala
index d26199f..923cf3f 100644
--- a/src/specific-items-manager.vala
+++ b/src/specific-items-manager.vala
@@ -22,7 +22,7 @@ using Gee;
public class SpecificItemsManager : GLib.Object
{
- public static enum category{
+ public enum category{
TRACK,
PLAYER
}
@@ -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;
}