about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/console.c9
-rw-r--r--src/ui/ui.h1
-rw-r--r--src/ui/window.c2
-rw-r--r--src/ui/windows.c3
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;
 }
 
support 'fake' handles allocated statically' href='/akkartik/mu/commit/090register-names.subx?h=hlt&id=f7360e493ac7e4d3fc27a1823db0ba62ef271433'>f7360e49 ^
8b1da9bb ^
cf1ddc41 ^
8b1da9bb ^
cf1ddc41 ^
8b1da9bb ^
cf1ddc41 ^
8b1da9bb ^
cf1ddc41 ^
8b1da9bb ^
cf1ddc41 ^
8b1da9bb ^
cf1ddc41 ^
8b1da9bb ^
cf1ddc41 ^
8b1da9bb ^
cf1ddc41 ^
8b1da9bb ^
cf1ddc41 ^
8b1da9bb ^
cf1ddc41 ^
8b1da9bb ^
cf1ddc41 ^
8b1da9bb ^
cf1ddc41 ^
8b1da9bb ^
cf1ddc41 ^
8b1da9bb ^
cf1ddc41 ^
8b1da9bb ^
cf1ddc41 ^
8b1da9bb ^
cf1ddc41 ^
8b1da9bb ^
cf1ddc41 ^
8b1da9bb ^
cf1ddc41 ^
8b1da9bb ^
cf1ddc41 ^
8b1da9bb ^
cf1ddc41 ^
8b1da9bb ^
cf1ddc41 ^
8b1da9bb ^
cf1ddc41 ^
8b1da9bb ^
cf1ddc41 ^
8b1da9bb ^
cf1ddc41 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164