diff --git a/src/screen_artist.c b/src/screen_artist.c
index 245637806b9d27c5ec9d0ef2ac90b19f78390a0e..5ff6f9b81c8d258128fab32783c5da9b1de7b95a 100644 (file)
--- a/src/screen_artist.c
+++ b/src/screen_artist.c
#include "screen_artist.h"
#include "screen_interface.h"
-#include "screen_message.h"
+#include "screen_status.h"
#include "screen_find.h"
#include "screen_browser.h"
#include "screen.h"
mpd_search_commit(connection);
recv_tag_values(connection, MPD_TAG_ARTIST, artist_list);
- if (!mpd_response_finish(connection))
- mpdclient_handle_error(c);
+ mpdclient_finish_command(c);
}
/* sort list */
recv_tag_values(connection, MPD_TAG_ALBUM, album_list);
- if (!mpd_response_finish(connection))
- mpdclient_handle_error(c);
+ mpdclient_finish_command(c);
}
/* sort list */
filelist_recv(browser.filelist, connection);
- if (!mpd_response_finish(connection))
- mpdclient_handle_error(c);
+ mpdclient_finish_command(c);
}
/* fix highlights */
*/
static void
paint_artist_callback(WINDOW *w, unsigned i,
- G_GNUC_UNUSED unsigned y, unsigned width,
+ gcc_unused unsigned y, unsigned width,
bool selected, void *data)
{
GPtrArray *list = data;
*/
static void
paint_album_callback(WINDOW *w, unsigned i,
- G_GNUC_UNUSED unsigned y, unsigned width,
+ gcc_unused unsigned y, unsigned width,
bool selected, void *data)
{
GPtrArray *list = data;
addlist = filelist_new_recv(connection);
- if (mpd_response_finish(connection))
+ if (mpdclient_finish_command(c))
mpdclient_filelist_add_all(c, addlist);
- else
- mpdclient_handle_error(c);
filelist_free(addlist);
}