aboutsummaryrefslogtreecommitdiff
path: root/src/sound-service-dbus.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-06-21 10:12:12 +0200
committerConor Curran <conor.curran@canonical.com>2011-06-21 10:12:12 +0200
commita3acb4947b7ae8c31e873befb24bebe64b36e49c (patch)
treea00e2882f179325c6bc2c6d9dbdd459656de6701 /src/sound-service-dbus.c
parent4fc554dc87e61f4fa7c605236da86d05781f7496 (diff)
downloadayatana-indicator-sound-a3acb4947b7ae8c31e873befb24bebe64b36e49c.tar.gz
ayatana-indicator-sound-a3acb4947b7ae8c31e873befb24bebe64b36e49c.tar.bz2
ayatana-indicator-sound-a3acb4947b7ae8c31e873befb24bebe64b36e49c.zip
expanded the signature on the dbus methods for player and track specific items to handle the object path on the other side
Diffstat (limited to 'src/sound-service-dbus.c')
-rw-r--r--src/sound-service-dbus.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/sound-service-dbus.c b/src/sound-service-dbus.c
index 26477a1..afb4f04 100644
--- a/src/sound-service-dbus.c
+++ b/src/sound-service-dbus.c
@@ -319,15 +319,24 @@ bus_method_call (GDBusConnection * connection,
retval = g_variant_new ("(b)", result);
}
else if (g_strcmp0(method, "EnableTrackSpecificItems") == 0) {
- gchar* player_name;
- g_variant_get (params, "(s)", &player_name);
- g_debug ("EnableTrackSpecificItems - name %s", player_name);
+ gchar** player_object_path_and_id;
+ g_variant_get (params, "(ss)", &player_object_path_and_id);
+ /*g_debug ("EnableTrackSpecificItems - name %s", player_object_path);
g_signal_emit (service,
signals[TRACK_SPECIFIC_ITEM],
0,
- player_name);
+ player_object_path);*/
}
+ else if (g_strcmp0(method, "EnablePlayerSpecificItems") == 0) {
+ /*gchar* player_object_path;
+ g_variant_get (params, "(s)", &player_object_path);
+ g_debug ("EnableTrackSpecificItems - name %s", player_object_path);
+ g_signal_emit (service,
+ signals[TRACK_SPECIFIC_ITEM],
+ 0,
+ player_object_path);*/
+ }
else {
g_warning("Calling method '%s' on the sound service but it's unknown", method);
}