aboutsummaryrefslogtreecommitdiff
path: root/src
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
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')
-rw-r--r--src/mpris2-controller.vala8
-rw-r--r--src/sound-service.c4
2 files changed, 6 insertions, 6 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);
diff --git a/src/sound-service.c b/src/sound-service.c
index f19379d..51f5f37 100644
--- a/src/sound-service.c
+++ b/src/sound-service.c
@@ -41,8 +41,8 @@ service_shutdown (IndicatorService *service, gpointer user_data)
if (mainloop != NULL) {
g_debug("Service shutdown !");
//TODO: uncomment for release !!
- close_pulse_activites();
- g_main_loop_quit(mainloop);
+ //close_pulse_activites();
+ //g_main_loop_quit(mainloop);
}
return;
}