mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Removed cons_create from console.c
This commit is contained in:
parent
d1b3340ea5
commit
48feac3e77
@ -40,18 +40,9 @@
|
|||||||
#include "xmpp/xmpp.h"
|
#include "xmpp/xmpp.h"
|
||||||
#include "xmpp/bookmark.h"
|
#include "xmpp/bookmark.h"
|
||||||
|
|
||||||
#define CONS_WIN_TITLE "_cons"
|
|
||||||
|
|
||||||
static void _cons_splash_logo(void);
|
static void _cons_splash_logo(void);
|
||||||
void _show_roster_contacts(GSList *list, gboolean show_groups);
|
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
|
void
|
||||||
cons_show_time(void)
|
cons_show_time(void)
|
||||||
{
|
{
|
||||||
|
@ -144,7 +144,6 @@ void title_bar_set_typing(gboolean is_typing);
|
|||||||
void title_bar_draw(void);
|
void title_bar_draw(void);
|
||||||
|
|
||||||
// console window actions
|
// console window actions
|
||||||
ProfWin* cons_create(void);
|
|
||||||
void cons_show(const char * const msg, ...);
|
void cons_show(const char * const msg, ...);
|
||||||
void cons_about(void);
|
void cons_about(void);
|
||||||
void cons_help(void);
|
void cons_help(void);
|
||||||
|
@ -35,8 +35,6 @@
|
|||||||
#include "config/theme.h"
|
#include "config/theme.h"
|
||||||
#include "ui/window.h"
|
#include "ui/window.h"
|
||||||
|
|
||||||
#define CONS_WIN_TITLE "_cons"
|
|
||||||
|
|
||||||
ProfWin*
|
ProfWin*
|
||||||
win_create(const char * const title, int cols, win_type_t type)
|
win_create(const char * const title, int cols, win_type_t type)
|
||||||
{
|
{
|
||||||
|
@ -38,6 +38,7 @@
|
|||||||
#include "ui/windows.h"
|
#include "ui/windows.h"
|
||||||
|
|
||||||
#define NUM_WINS 10
|
#define NUM_WINS 10
|
||||||
|
#define CONS_WIN_TITLE "_cons"
|
||||||
|
|
||||||
static ProfWin* windows[NUM_WINS];
|
static ProfWin* windows[NUM_WINS];
|
||||||
static int current;
|
static int current;
|
||||||
@ -65,7 +66,7 @@ wins_init(void)
|
|||||||
|
|
||||||
max_cols = getmaxx(stdscr);
|
max_cols = getmaxx(stdscr);
|
||||||
int 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;
|
current = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user