From: Andre Noll Date: Tue, 7 Jan 2014 22:08:00 +0000 (+0000) Subject: gui: Remove change_theme(). X-Git-Tag: v0.5.3~12^2~30 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=c2ff586ae77f1ab640d5f8b3ceb12786fcc4cbaa;p=paraslash.git gui: Remove change_theme(). It's silly to have a function for this. --- diff --git a/gui.c b/gui.c index 25e852de..01af3227 100644 --- a/gui.c +++ b/gui.c @@ -1411,27 +1411,18 @@ static void com_refresh(void) init_curses(); } -static void change_theme(int next) -{ - if (next) - theme_next(&theme); - else - theme_prev(&theme); - com_refresh(); - PARA_NOTICE_LOG("new theme: %s\n", theme.name); -} - static void com_next_theme(void) { - change_theme(1); + theme_next(&theme); + com_refresh(); } static void com_prev_theme(void) { - change_theme(0); + theme_prev(&theme); + com_refresh(); } - static void handle_command(int c) { int i; diff --git a/gui_theme.c b/gui_theme.c index 3963d352..3c9886d1 100644 --- a/gui_theme.c +++ b/gui_theme.c @@ -381,6 +381,7 @@ static void set_theme(int num, struct gui_theme *t) t->name = themes[num].name; themes[num].init(t); current_theme_num = num; + PARA_NOTICE_LOG("theme: %s\n", t->name); } void theme_init(const char *name, struct gui_theme *t)