X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fcallbacks.c;h=90eb40923001281ba7eb3a1d9936b8eb175f335d;hb=HEAD;hp=e12268227586640528e63cf7232913c2dea9bb55;hpb=b840385c924fa9c62708956d8cb1f24562a2b2a4;p=ncmpc.git diff --git a/src/callbacks.c b/src/callbacks.c index e122682..90eb409 100644 --- a/src/callbacks.c +++ b/src/callbacks.c @@ -21,7 +21,6 @@ #include "screen_utils.h" #include "screen_status.h" #include "mpdclient.h" -#include "charset.h" static bool _mpdclient_auth_callback(struct mpdclient *c, gint recursion) @@ -58,12 +57,9 @@ mpdclient_auth_callback(struct mpdclient *c) } void -mpdclient_error_callback(const char *message_utf8) +mpdclient_error_callback(const char *message) { - char *message_locale = utf8_to_locale(message_utf8); - screen_status_printf("%s", message_locale); - g_free(message_locale); - + screen_status_message(message); screen_bell(); doupdate(); }