--- a/gntinternal.h Thu Nov 22 03:43:24 2018 -0500
+++ b/gntinternal.h Fri Nov 23 16:56:35 2018 -0500
@@ -21,6 +21,7 @@
#define G_LOG_DOMAIN "Gnt"
--- a/gntwm.c Thu Nov 22 03:43:24 2018 -0500
+++ b/gntwm.c Fri Nov 23 16:56:35 2018 -0500
@@ -89,7 +89,7 @@
static gboolean workspace_next(GntBindable *wm, GList *n);
static gboolean workspace_prev(GntBindable *wm, GList *n);
static int widestringwidth(wchar_t *wide);
@@ -157,7 +157,7 @@
work_around_for_ncurses_bug(void)
while ((panel = panel_below(panel)) != NULL) {
int sx, ex, sy, ey, w, y;
@@ -732,7 +732,7 @@
for (y = 0; y < getmaxy(stdscr); y++) {
for (x = 0; x < getmaxx(stdscr); x++) {
char ch[2] = {0, 0}, *print;
now = mvwinch(curscr, y, x);
ch[0] = now & A_CHARTEXT;
@@ -806,7 +806,7 @@
bg.r, bg.g, bg.b, fg.r, fg.g, fg.b);
if (wch.chars[0] > 255) {
snprintf(unicode, sizeof(unicode), "&#x%x;", (unsigned int)wch.chars[0]);
@@ -982,7 +982,7 @@
widestringwidth(wchar_t *wide)
@@ -1004,7 +1004,7 @@
#define DECIDE(ch) (set ? ((ch) | A_REVERSE) : ((ch) & ~A_REVERSE))
mvwaddch(d, y, x, DECIDE(ch));
--- a/meson.build Thu Nov 22 03:43:24 2018 -0500
+++ b/meson.build Fri Nov 23 16:56:35 2018 -0500
@@ -111,6 +111,7 @@
ncurses_available = false
+ gnt_config.set('NCURSES_WIDECHAR', 1) # ncursesw was not found. Look for plain old ncurses
@@ -118,7 +119,7 @@
compiler.find_library('panel', required : false)
ncurses_available = ncurses_libs[0].found() and ncurses_libs[1].found()
- gnt_config.set('NO_WIDECHAR', true)
+ gnt_config.set('NCURSES_WIDECHAR', 0) error('ncurses could not be found!')
@@ -184,7 +185,7 @@
# Check for Python headers
@@ -197,6 +198,11 @@
configuration : gnt_config,
install_dir : join_paths(get_option('includedir'), 'gnt'))
+# This is temporary until we can hide GObject internals: +configure_file(input : 'gnt.h.in', output : 'gnt.h', + configuration : gnt_config, + install_dir : join_paths(get_option('includedir'), 'gnt')) gmodule = dependency('gmodule-2.0')