aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-09-13 11:57:41 +0100
committerConor Curran <conor.curran@canonical.com>2010-09-13 11:57:41 +0100
commitfc3c998e6bbec4528a9b1682665064679ac590ac (patch)
tree926011b129de6371f8cd0c7ef164f63d3f709572
parentaf31c744cee14a2fadac8f72111f1b422de9f7a7 (diff)
downloadayatana-indicator-sound-fc3c998e6bbec4528a9b1682665064679ac590ac.tar.gz
ayatana-indicator-sound-fc3c998e6bbec4528a9b1682665064679ac590ac.tar.bz2
ayatana-indicator-sound-fc3c998e6bbec4528a9b1682665064679ac590ac.zip
playback status investigations
-rw-r--r--src/mpris2-controller.vala6
-rw-r--r--src/sound-service.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/mpris2-controller.vala b/src/mpris2-controller.vala
index 5f284b2..b6d2333 100644
--- a/src/mpris2-controller.vala
+++ b/src/mpris2-controller.vala
@@ -1,5 +1,4 @@
/*
-This service primarily controls PulseAudio and is driven by the sound indicator menu on the panel.
Copyright 2010 Canonical Ltd.
Authors:
@@ -86,8 +85,9 @@ public class Mpris2Controller : GLib.Object
root_interface.concat(".Player"));
this.player.Seeked += onSeeked;
- this.properties_interface = (FreeDesktopProperties) connection.get_object(root_interface.concat(".").concat(this.owner.name.down()),
+ this.properties_interface = (FreeDesktopProperties) connection.get_object("org.freedesktop.Properties.PropertiesChanged",//root_interface.concat(".").concat(this.owner.name.down()),
"/org/mpris/MediaPlayer2");
+
this.properties_interface.PropertiesChanged += property_changed_cb;
} catch (DBus.Error e) {
@@ -102,7 +102,7 @@ public class Mpris2Controller : GLib.Object
debug("invalid length : %i", invalid.length);
if(changed_properties == null || interface_source.has_prefix(this.root_interface) == false ){
- warning("Property-changed hash is null or this is an interface that concerns us");
+ warning("Property-changed hash is null or this is an interface that doesn't concerns us");
return;
}
Value? play_v = changed_properties.lookup("PlaybackStatus");
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;
}