diff options
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/console.c | 9 | ||||
-rw-r--r-- | src/ui/ui.h | 1 | ||||
-rw-r--r-- | src/ui/window.c | 2 | ||||
-rw-r--r-- | src/ui/windows.c | 3 |
4 files changed, 2 insertions, 13 deletions
diff --git a/src/ui/console.c b/src/ui/console.c index b7c833e0..107e190d 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -40,18 +40,9 @@ #include "xmpp/xmpp.h" #include "xmpp/bookmark.h" -#define CONS_WIN_TITLE "_cons" - static void _cons_splash_logo(void); void _show_roster_contacts(GSList *list, gboolean show_groups); -ProfWin * -cons_create(void) -{ - int cols = getmaxx(stdscr); - return win_create(CONS_WIN_TITLE, cols, WIN_CONSOLE); -} - void cons_show_time(void) { diff --git a/src/ui/ui.h b/src/ui/ui.h index 54adbc13..eec4aac5 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -144,7 +144,6 @@ void title_bar_set_typing(gboolean is_typing); void title_bar_draw(void); // console window actions -ProfWin* cons_create(void); void cons_show(const char * const msg, ...); void cons_about(void); void cons_help(void); diff --git a/src/ui/window.c b/src/ui/window.c index e2e03340..b78a240f 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -35,8 +35,6 @@ #include "config/theme.h" #include "ui/window.h" -#define CONS_WIN_TITLE "_cons" - ProfWin* win_create(const char * const title, int cols, win_type_t type) { diff --git a/src/ui/windows.c b/src/ui/windows.c index fe94b482..3f5d2d6b 100644 --- a/src/ui/windows.c +++ b/src/ui/windows.c @@ -38,6 +38,7 @@ #include "ui/windows.h" #define NUM_WINS 10 +#define CONS_WIN_TITLE "_cons" static ProfWin* windows[NUM_WINS]; static int current; @@ -65,7 +66,7 @@ wins_init(void) max_cols = getmaxx(stdscr); int cols = getmaxx(stdscr); - windows[0] = win_create("_cons", cols, WIN_CONSOLE); + windows[0] = win_create(CONS_WIN_TITLE, cols, WIN_CONSOLE); current = 0; } |