Description: Correctly return list of playlist names trough D-Bus
Author: Piotr Szydełko <wiertel@users.sourceforge.net>
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=667139
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=653373
diff -ur rhythmbox-2.90.1~git20111117.f101562/shell/rb-playlist-manager.c rhythmbox-2.90.1-wiertel/shell/rb-playlist-manager.c
--- rhythmbox-2.90.1~git20111117.f101562/shell/rb-playlist-manager.c	2011-11-17 09:30:18.000000000 +0100
+++ rhythmbox-2.90.1-wiertel/shell/rb-playlist-manager.c	2011-12-27 13:28:12.180998131 +0100
@@ -1625,10 +1625,13 @@
 
 	if (g_strcmp0 (method_name, "GetPlaylists") == 0) {
 		char **names;
+		GVariant *res;
 
 		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));
+		res = g_variant_new_strv ((const char * const *)names, -1);
+		res = g_variant_new_tuple (&res, 1);
+
+		g_dbus_method_invocation_return_value (invocation, res);
 		g_strfreev (names);
 	} else if (g_strcmp0 (method_name, "CreatePlaylist") == 0) {
 		g_variant_get (parameters, "(&s)", &name);
