main: remove useless "Connected to ..." message
[ncmpc.git] / src / screen_status.c
blobca61fee17186304b3252720673c1cc8f8d6f563a
1 /* ncmpc (Ncurses MPD Client)
2 * (c) 2004-2010 The Music Player Daemon Project
3 * Project homepage: http://musicpd.org
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 #include "screen_status.h"
21 #include "screen.h"
23 #include <stdarg.h>
25 void
26 screen_status_clear_message(void)
28 status_bar_clear_message(&screen.status_bar);
31 void
32 screen_status_message(const char *msg)
34 status_bar_message(&screen.status_bar, msg);
37 void
38 screen_status_printf(const char *format, ...)
40 char *msg;
41 va_list ap;
43 va_start(ap,format);
44 msg = g_strdup_vprintf(format,ap);
45 va_end(ap);
46 screen_status_message(msg);
47 g_free(msg);