qulogic/libgnt

Parents ba0a1cf21c46
Children bda6506046bb
Replace character octal representations with just an octal representation
  • +1 -1
    gntentry.c
  • +2 -2
    gntmain.c
  • +1 -1
    gntstyle.c
  • +1 -1
    gntwm.c
  • --- a/gntentry.c Wed Oct 02 02:04:49 2019 -0400
    +++ b/gntentry.c Thu Oct 03 03:57:52 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] = {033, erasechar(), 0};
    widget_class->clicked = gnt_entry_clicked;
    widget_class->destroy = gnt_entry_destroy;
    --- a/gntmain.c Wed Oct 02 02:04:49 2019 -0400
    +++ b/gntmain.c Thu Oct 03 03:57:52 2019 -0500
    @@ -397,7 +397,7 @@
    rd += HOLDING_ESCAPE;
    if (HOLDING_ESCAPE) {
    - keys[0] = '\033';
    + keys[0] = 033;
    g_source_remove(escape_stuff.timer);
    escape_stuff.timer = 0;
    }
    @@ -413,7 +413,7 @@
    char back;
    int p;
    - if (k[0] == '\033' && rd == 1) {
    + if (k[0] == 033 && rd == 1) {
    escape_stuff.timer = g_timeout_add(250, escape_timeout, NULL);
    break;
    }
    --- a/gntstyle.c Wed Oct 02 02:04:49 2019 -0400
    +++ b/gntstyle.c Thu Oct 03 03:57:52 2019 -0500
    @@ -136,7 +136,7 @@
    {
    if (*s == '^' && *(s + 1) == '[')
    {
    - *t = '\033'; /* escape */
    + *t = 033; /* escape */
    s++;
    }
    else if (*s == '\\')
    --- a/gntwm.c Wed Oct 02 02:04:49 2019 -0400
    +++ b/gntwm.c Thu Oct 03 03:57:52 2019 -0500
    @@ -2191,7 +2191,7 @@
    gnt_widget_destroy(priv->list.window);
    return TRUE;
    }
    - } else if (keys[0] == '\033' && isdigit(keys[1]) && keys[2] == '\0') {
    + } else if (keys[0] == 033 && isdigit(keys[1]) && keys[2] == '\0') {
    /* Alt+x for quick switch */
    int n = *(keys + 1) - '0';
    GList *list = NULL;