aboutsummaryrefslogtreecommitdiff
path: root/src/mpris2-controller.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-09-14 12:35:15 +0100
committerConor Curran <conor.curran@canonical.com>2010-09-14 12:35:15 +0100
commitb68421bc7f4f36342463498b44e2a3fb4b11fe7e (patch)
treef66972cbe4662e1d457db22386fbe4bae513f030 /src/mpris2-controller.vala
parent0568dd3b8c0510269699d4f9f256b878137008d3 (diff)
downloadayatana-indicator-sound-b68421bc7f4f36342463498b44e2a3fb4b11fe7e.tar.gz
ayatana-indicator-sound-b68421bc7f4f36342463498b44e2a3fb4b11fe7e.tar.bz2
ayatana-indicator-sound-b68421bc7f4f36342463498b44e2a3fb4b11fe7e.zip
async the root dbus method calls
Diffstat (limited to 'src/mpris2-controller.vala')
-rw-r--r--src/mpris2-controller.vala8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mpris2-controller.vala b/src/mpris2-controller.vala
index bab20ae..696fd09 100644
--- a/src/mpris2-controller.vala
+++ b/src/mpris2-controller.vala
@@ -28,8 +28,8 @@ public interface MprisRoot : DBus.Object {
public abstract string Identity{owned get; set;}
public abstract string DesktopEntry{owned get; set;}
// methods
- public abstract void Quit() throws DBus.Error;
- public abstract void Raise() throws DBus.Error;
+ public abstract async void Quit() throws DBus.Error;
+ public abstract async void Raise() throws DBus.Error;
}
[DBus (name = "org.mpris.MediaPlayer2.Player")]
@@ -215,12 +215,12 @@ public class Mpris2Controller : GLib.Object
}
return true;
}
-
+
public void expose()
{
if(this.connected() == true){
try{
- this.mpris2_root.Raise();
+ this.mpris2_root.Raise.begin();
}
catch(DBus.Error e){
error("Exception thrown while calling function Raise - %s", e.message);