]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - gui_theme.c
gui: Remove welcome message.
[paraslash.git] / gui_theme.c
index 5976a0e73f1072d963ca5c325a8f2299b5b25fff..279ad9149add67324a0e11c595d66e59369f0f54 100644 (file)
@@ -1,10 +1,9 @@
 /*
- * Copyright (C) 2005-2011 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2005-2014 Andre Noll <maan@systemlinux.org>
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
 
-#include <stdbool.h>
 #include "para.h"
 #include "gui.h"
 #include <curses.h>
@@ -27,8 +26,6 @@ static void init_theme_simple(struct gui_theme *t)
        t->msg_fg = COLOR_YELLOW;
        t->err_msg_bg = COLOR_RED;
        t->err_msg_fg = COLOR_WHITE;
-       t->welcome_bg = COLOR_BLUE;
-       t->welcome_fg = COLOR_WHITE;
        t->sep_bg = COLOR_BLUE;
        t->sep_fg = COLOR_CYAN;
        t->default_fg = COLOR_WHITE;
@@ -86,8 +83,6 @@ static void init_theme_colorful_blackness(struct gui_theme *t)
        t->msg_fg = COLOR_WHITE;
        t->err_msg_bg = COLOR_RED;
        t->err_msg_fg = COLOR_WHITE;
-       t->welcome_bg = COLOR_BLUE;
-       t->welcome_fg = COLOR_WHITE;
        t->sep_bg = COLOR_BLACK; /* color of the separator */
        t->sep_fg = COLOR_BLUE;
        t->sep_str = "-";
@@ -362,7 +357,7 @@ struct theme_description {
        void (*init)(struct gui_theme *t);
 };
 
-struct theme_description themes[] = {
+static struct theme_description themes[] = {
        {
                .name = "colorful blackness",
                .init = init_theme_colorful_blackness,
@@ -377,7 +372,7 @@ struct theme_description themes[] = {
 
 static int current_theme_num;
 
-void set_theme(int num, struct gui_theme *t)
+static void set_theme(int num, struct gui_theme *t)
 {
        int i;
        FOR_EACH_STATUS_ITEM(i)
@@ -412,4 +407,3 @@ void next_theme(struct gui_theme *t)
 {
        return set_theme(--current_theme_num, t);
 }
-