diff options
author | Conor Curran <conor.curran@canonical.com> | 2011-01-31 13:14:47 -0600 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2011-01-31 13:14:47 -0600 |
commit | cf9b03167ed12086acbd74b97404b082f8e018a8 (patch) | |
tree | 1f8bf0544e98f7ac91352f41e2305d908bdf1e68 /src/player-controller.vala | |
parent | 19938ac8e993a14d8320b75091aaa56894e8175a (diff) | |
download | ayatana-indicator-sound-cf9b03167ed12086acbd74b97404b082f8e018a8.tar.gz ayatana-indicator-sound-cf9b03167ed12086acbd74b97404b082f8e018a8.tar.bz2 ayatana-indicator-sound-cf9b03167ed12086acbd74b97404b082f8e018a8.zip |
players in menu now dynamically controllable from new dbus api
Diffstat (limited to 'src/player-controller.vala')
-rw-r--r-- | src/player-controller.vala | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/player-controller.vala b/src/player-controller.vala index 024b88b..d24eaa0 100644 --- a/src/player-controller.vala +++ b/src/player-controller.vala @@ -119,10 +119,10 @@ 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); } } @@ -180,7 +180,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 +188,7 @@ public class PlayerController : GLib.Object } } } - + private void determine_state() { if(this.mpris_bridge.connected() == true){ |