# HG changeset patch # User Jonathan Schleifer # Date 1183125146 -7200 # Node ID 1cdfc508d7587873786c5f56df951a91ee837597 # Parent d9a4d56b60813df2715d7c2f3ea751a922d425b9 Fix adding files when Audacious is running. A fix to start Audacious with a file will follow. Aditionally, some old, useless XMMS stuff was removed. diff -r d9a4d56b6081 -r 1cdfc508d758 src/audacious/main.c --- a/src/audacious/main.c Fri Jun 29 08:40:23 2007 -0500 +++ b/src/audacious/main.c Fri Jun 29 15:52:26 2007 +0200 @@ -1130,16 +1130,6 @@ bmp_init_paths(); bmp_make_user_dir(); - /* Check GTK version. Really, this is only needed for binary - * distribution since configure already checks. */ - if (!GTK_CHECK_VERSION(2, 6, 0)) { - g_printerr(_("Sorry, your GTK+ version (%d.%d.%d) does not work with Audacious.\n" - "Please use GTK+ %s or newer.\n"), - gtk_major_version, gtk_minor_version, gtk_micro_version, - "2.6.0"); - exit(EXIT_FAILURE); - } - g_set_application_name(_(application_name)); cond_scan = g_cond_new(); @@ -1159,7 +1149,8 @@ if (error != NULL) { - g_printerr(_("%s: %s\nTry `%s --help' for more information.\n"), argv[0], error->message, argv[0]); + g_printerr(_("%s: %s\nTry `%s --help' for more information.\n"), + argv[0], error->message, argv[0]); exit(EXIT_FAILURE); } @@ -1176,7 +1167,7 @@ /* we could be running headless, so GTK probably wont matter */ if (options.headless != 1) - exit(EXIT_SUCCESS); + exit(EXIT_SUCCESS); } if (options.no_log == FALSE) diff -r d9a4d56b6081 -r 1cdfc508d758 src/libaudclient/audctrl.c --- a/src/libaudclient/audctrl.c Fri Jun 29 08:40:23 2007 -0500 +++ b/src/libaudclient/audctrl.c Fri Jun 29 15:52:26 2007 +0200 @@ -64,7 +64,10 @@ * Sends a list of URIs to Audacious to add to the playlist. **/ void audacious_remote_playlist_add(DBusGProxy *proxy, GList *list) { -//XXX + GList *iter; + for (iter = list; iter != NULL; iter = g_list_next(iter)) + org_atheme_audacious_add(proxy, iter->data, &error); + g_clear_error(&error); } /**