aboutsummaryrefslogtreecommitdiff
path: root/src/mpris-bridge.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-08-12 20:36:14 +0100
committerConor Curran <conor.curran@canonical.com>2010-08-12 20:36:14 +0100
commit30a697a1027229c23857ced856c0fdbd15b40d14 (patch)
tree7d2a868799eb2457469e61d44cc6834774a74252 /src/mpris-bridge.vala
parent72ffb2c3c096cf0e7ece12c93bfeff5b651fed13 (diff)
downloadayatana-indicator-sound-30a697a1027229c23857ced856c0fdbd15b40d14.tar.gz
ayatana-indicator-sound-30a697a1027229c23857ced856c0fdbd15b40d14.tar.bz2
ayatana-indicator-sound-30a697a1027229c23857ced856c0fdbd15b40d14.zip
moving mpris2 to gdbus, the horror
Diffstat (limited to 'src/mpris-bridge.vala')
-rw-r--r--src/mpris-bridge.vala13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mpris-bridge.vala b/src/mpris-bridge.vala
index 682069c..bb02550 100644
--- a/src/mpris-bridge.vala
+++ b/src/mpris-bridge.vala
@@ -10,17 +10,16 @@ public class MprisBridge : GLib.Object
public MprisBridge(PlayerController ctrl)
{
- this.mpris2_controller == new Mpris2Controller(ctrl);
+ this.mpris2_controller = new Mpris2Controller(ctrl);
if(this.mpris2_controller.was_successfull() == true){
- mode_in_use == mode.MPRIS_2;
- this.mpris1_controller == null;
+ this.mode_in_use = mode.MPRIS_2;
+ this.mpris1_controller = null;
this.mpris2_controller.initial_update();
}
else{
- delete this.mpris2_controller;
- this.mpris2_controller == null;
- mode_in_use == mode.MPRIS_1;
- this.mpris1_controller = new Mpris1Controller(ctrl);
+ this.mpris2_controller = null;
+ this.mode_in_use = mode.MPRIS_1;
+ this.mpris1_controller = new MprisController(ctrl);
}
}