Code

screen: don't use/define "welcome" stuff in --enable-mini
authorMax Kellermann <max@duempel.org>
Sat, 3 Oct 2009 20:04:32 +0000 (22:04 +0200)
committerMax Kellermann <max@duempel.org>
Sat, 3 Oct 2009 20:04:32 +0000 (22:04 +0200)
src/screen.c

index 81b736468757535f225895c51eb2475d1c865b9c..efbd37ff6fb8729cca81f1db00a92981faf7b099 100644 (file)
@@ -243,12 +243,15 @@ screen_resize(struct mpdclient *c)
        screen_paint(c);
 }
 
+#ifndef NCMPC_MINI
 static gboolean
 welcome_timer_callback(gpointer data)
 {
        struct mpdclient *c = data;
 
+#ifndef NCMPC_MINI
        screen.welcome_source_id = 0;
+#endif
 
        paint_top_window(mode_fn->get_title != NULL
                         ? mode_fn->get_title(screen.buf, screen.buf_size)
@@ -258,6 +261,7 @@ welcome_timer_callback(gpointer data)
 
        return false;
 }
+#endif
 
 void
 screen_init(struct mpdclient *c)