qulogic/libgnt

d09da3fe1c5c
Parents 97cb5041c485
Children f187489ecfff
Minor adjustments to prevent a crash, correct a data type and fix drawing.
  • +2 -1
    gntmain.c
  • +2 -1
    gnttree.c
  • +1 -1
    gntws.h
  • +1 -1
    test/Makefile
  • --- a/gntmain.c Fri Nov 09 01:45:10 2007 +0000
    +++ b/gntmain.c Sat Nov 10 01:18:15 2007 +0000
    @@ -291,7 +291,8 @@
    k += p;
    }
    end:
    - gnt_wm_set_event_stack(wm, FALSE);
    + if (wm)
    + gnt_wm_set_event_stack(wm, FALSE);
    g_free(cvrt);
    return TRUE;
    }
    --- a/gnttree.c Fri Nov 09 01:45:10 2007 +0000
    +++ b/gnttree.c Sat Nov 10 01:18:15 2007 +0000
    @@ -1777,7 +1777,8 @@
    break;
    }
    }
    - readjust_columns(tree);
    + if (GNT_WIDGET_IS_FLAG_SET(GNT_WIDGET(tree), GNT_WIDGET_MAPPED))
    + readjust_columns(tree);
    }
    void gnt_tree_set_column_resizable(GntTree *tree, int col, gboolean res)
    --- a/gntws.h Fri Nov 09 01:45:10 2007 +0000
    +++ b/gntws.h Sat Nov 10 01:18:15 2007 +0000
    @@ -42,7 +42,7 @@
    struct _GntWS
    {
    GntBindable inherit;
    - gchar *name;
    + char *name;
    GList *list;
    GList *ordered;
    gpointer ui_data;
    --- a/test/Makefile Fri Nov 09 01:45:10 2007 +0000
    +++ b/test/Makefile Sat Nov 10 01:18:15 2007 +0000
    @@ -1,5 +1,5 @@
    CC=gcc
    -CFLAGS=`pkg-config --cflags gobject-2.0 gmodule-2.0` -g -I../ -DSTANDALONE -I/usr/inclue/ncursesw/
    +CFLAGS=`pkg-config --cflags gobject-2.0 gmodule-2.0` -g -I../ -DSTANDALONE -I/usr/include/ncursesw/
    LDFLAGS=`pkg-config --libs gobject-2.0 gmodule-2.0 gnt` -pg
    EXAMPLES=combo focus tv multiwin keys menu parse