aboutsummaryrefslogtreecommitdiff
path: root/src/player-controller.vala
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2011-02-10 06:52:59 -0500
committerBazaar Package Importer <james.westby@ubuntu.com>2011-02-10 06:52:59 -0500
commitb25003363dbd793578c8a3052d6a9bfd1f770ce9 (patch)
treed74ee9e8911c0d7b2ecf6b3df98e1bcdff73fe06 /src/player-controller.vala
parentde66136aa56d5bcabc49d1f19f8a3f91b9308ef9 (diff)
parent817f8e1a86aaa026c8de8acee40c5c9664d358d0 (diff)
downloadayatana-indicator-sound-b25003363dbd793578c8a3052d6a9bfd1f770ce9.tar.gz
ayatana-indicator-sound-b25003363dbd793578c8a3052d6a9bfd1f770ce9.tar.bz2
ayatana-indicator-sound-b25003363dbd793578c8a3052d6a9bfd1f770ce9.zip
* New upstream release.
- crashed with SIGSEGV in pa_cvolume_valid () (LP: #705009) - The players list should be customizable (LP: #685725) - Allow players to set their own title (LP: #709367) - refactor pulse manager (LP: #709371) - listen for playlist changed signal (LP: #715277) - playlist name not updated corrrectly (LP: #715694) - Not enough feedback when changing the volume (LP: #669163) - indicator-sound volume does not detect sink change (LP: #700361) * debian/control - Added new build depends libnotify-dev
Diffstat (limited to 'src/player-controller.vala')
-rw-r--r--src/player-controller.vala14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/player-controller.vala b/src/player-controller.vala
index 024b88b..3ce121e 100644
--- a/src/player-controller.vala
+++ b/src/player-controller.vala
@@ -119,10 +119,14 @@ public class PlayerController : GLib.Object
this.determine_state();
}
- public void vanish()
+ public void remove_from_menu()
{
- foreach(Dbusmenu.Menuitem item in this.custom_items){
- root_menu.child_delete(item);
+ foreach(PlayerItem item in this.custom_items){
+ this.root_menu.child_delete(item);
+ }
+ if (this.use_playlists == true){
+ PlaylistsMenuitem playlists_menuitem = this.custom_items[widget_order.PLAYLISTS] as PlaylistsMenuitem;
+ this.root_menu.child_delete (playlists_menuitem.root_item);
}
}
@@ -180,7 +184,7 @@ public class PlayerController : GLib.Object
foreach(PlayerItem item in this.custom_items){
if (this.custom_items.index_of(item) != 4) {
- root_menu.child_add_position(item, this.menu_offset + this.custom_items.index_of(item));
+ root_menu.child_add_position(item, this.menu_offset + this.custom_items.index_of(item));
}
else{
PlaylistsMenuitem playlists_menuitem = item as PlaylistsMenuitem;
@@ -188,7 +192,7 @@ public class PlayerController : GLib.Object
}
}
}
-
+
private void determine_state()
{
if(this.mpris_bridge.connected() == true){