aboutsummaryrefslogtreecommitdiff
path: root/src/player-controller.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-08-27 12:25:47 +0100
committerConor Curran <conor.curran@canonical.com>2010-08-27 12:25:47 +0100
commit358766335b244a2687469687d0ecacfb4238b221 (patch)
treed908c400b8b0a906eca6e87e3f6e26546b650e18 /src/player-controller.vala
parente65973ff51c6db68adfb745dcc4df348031b34c3 (diff)
downloadayatana-indicator-sound-358766335b244a2687469687d0ecacfb4238b221.tar.gz
ayatana-indicator-sound-358766335b244a2687469687d0ecacfb4238b221.tar.bz2
ayatana-indicator-sound-358766335b244a2687469687d0ecacfb4238b221.zip
remove mpris1 support
Diffstat (limited to 'src/player-controller.vala')
-rw-r--r--src/player-controller.vala9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/player-controller.vala b/src/player-controller.vala
index 3e12dce..4d9f054 100644
--- a/src/player-controller.vala
+++ b/src/player-controller.vala
@@ -45,11 +45,14 @@ public class PlayerController : GLib.Object
private Dbusmenu.Menuitem root_menu;
public string name { get; set;}
public ArrayList<PlayerItem> custom_items;
- public MprisBridge mpris_bridge;
+ public Mpris2Controller mpris_bridge;
public AppInfo? app_info { get; set;}
public int menu_offset { get; set;}
- public PlayerController(Dbusmenu.Menuitem root, string client_name, int offset, state initial_state)
+ public PlayerController(Dbusmenu.Menuitem root,
+ string client_name,
+ int offset,
+ state initial_state)
{
this.root_menu = root;
this.name = format_client_name(client_name.strip());
@@ -97,7 +100,7 @@ public class PlayerController : GLib.Object
debug("establish_mpris_connection - Not ready to connect");
return;
}
- this.mpris_bridge = new MprisBridge(this);
+ this.mpris_bridge = new Mpris2Controller(this);
this.determine_state();
}