[rhythmbox] playlist-manager: fix GetPlaylists dbus method (bug #667139)



commit f831c30093e4e6da8c593cf766995b239e5eebf5
Author: Jonathan Matthew <jonathan d14n org>
Date:   Thu Jan 5 09:08:02 2012 +1000

    playlist-manager: fix GetPlaylists dbus method (bug #667139)
    
    Return values need to be wrapped in a tuple.

 shell/rb-playlist-manager.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/shell/rb-playlist-manager.c b/shell/rb-playlist-manager.c
index f825178..f3a90c8 100644
--- a/shell/rb-playlist-manager.c
+++ b/shell/rb-playlist-manager.c
@@ -1627,8 +1627,7 @@ playlist_manager_method_call (GDBusConnection *connection,
 		char **names;
 
 		rb_playlist_manager_get_playlist_names (mgr, &names, NULL);
-		g_dbus_method_invocation_return_value (invocation,
-						       g_variant_new_strv ((const char * const *)names, -1));
+		g_dbus_method_invocation_return_value (invocation, g_variant_new ("(^as)", names));
 		g_strfreev (names);
 	} else if (g_strcmp0 (method_name, "CreatePlaylist") == 0) {
 		g_variant_get (parameters, "(&s)", &name);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]