diff options
author | Ken VanDine <ken.vandine@canonical.com> | 2011-09-28 15:17:30 -0400 |
---|---|---|
committer | Ken VanDine <ken.vandine@canonical.com> | 2011-09-28 15:17:30 -0400 |
commit | e92bccafd8bc17ca37d48e78d497e1001dbaef80 (patch) | |
tree | 98e69ce3ea129c396840ef69a1feae40b01b5529 /src/specific-items-manager.vala | |
parent | 8b55a10546bbdee8fe0fa0088d751f885068ca94 (diff) | |
parent | bf90e843f9ecc907ab917d3d3b540014137d6964 (diff) | |
download | ayatana-indicator-sound-e92bccafd8bc17ca37d48e78d497e1001dbaef80.tar.gz ayatana-indicator-sound-e92bccafd8bc17ca37d48e78d497e1001dbaef80.tar.bz2 ayatana-indicator-sound-e92bccafd8bc17ca37d48e78d497e1001dbaef80.zip |
releasing version 0.7.8-0ubuntu1
Diffstat (limited to 'src/specific-items-manager.vala')
-rw-r--r-- | src/specific-items-manager.vala | 8 |
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; } |