--- a/gntentry.c Thu Oct 03 05:11:27 2019 -0500
+++ b/gntentry.c Thu Oct 03 05:48:01 2019 -0500
@@ -1058,7 +1058,7 @@
GntBindableClass *bindable = GNT_BINDABLE_CLASS(klass);
GntWidgetClass *widget_class = GNT_WIDGET_CLASS(klass);
- char s[3] = {033, erasechar(), 0};
+ char s[3] = {GNT_ESCAPE, erasechar(), 0}; widget_class->clicked = gnt_entry_clicked;
widget_class->destroy = gnt_entry_destroy;
--- a/gntinternal.h Thu Oct 03 05:11:27 2019 -0500
+++ b/gntinternal.h Thu Oct 03 05:48:01 2019 -0500
@@ -26,6 +26,8 @@
#define G_LOG_DOMAIN "Gnt"
+#define GNT_ESCAPE '\033' # define GNT_LOG_DOMAIN ""
--- a/gntmain.c Thu Oct 03 05:11:27 2019 -0500
+++ b/gntmain.c Thu Oct 03 05:48:01 2019 -0500
@@ -315,7 +315,7 @@
@@ -328,7 +328,7 @@
if (ch == 0xE0 || ch == 0xE1) {
@@ -397,7 +397,7 @@
g_source_remove(escape_stuff.timer);
@@ -413,7 +413,7 @@
- if (k[0] == 033 && rd == 1) {
+ if (k[0] == GNT_ESCAPE && rd == 1) { escape_stuff.timer = g_timeout_add(250, escape_timeout, NULL);
@@ -939,7 +939,7 @@
newc = g_locale_from_utf8(x, -1, NULL, NULL, &error);
- gnt_warning("Error: %s\n", error ? error->message : "(unknown)");
+ gnt_warning("Error: %s\n", error->message ? error->message : "(unknown)"); --- a/gntstyle.c Thu Oct 03 05:11:27 2019 -0500
+++ b/gntstyle.c Thu Oct 03 05:48:01 2019 -0500
@@ -136,7 +136,7 @@
if (*s == '^' && *(s + 1) == '[')
--- a/gntwm.c Thu Oct 03 05:11:27 2019 -0500
+++ b/gntwm.c Thu Oct 03 05:48:01 2019 -0500
@@ -2191,7 +2191,7 @@
gnt_widget_destroy(priv->list.window);
- } else if (keys[0] == 033 && isdigit(keys[1]) && keys[2] == '\0') {
+ } else if (keys[0] == GNT_ESCAPE && isdigit(keys[1]) && keys[2] == '\0') { /* Alt+x for quick switch */
int n = *(keys + 1) - '0';