# HG changeset patch # User Sadrul Habib Chowdhury # Date 1194657495 0 # Node ID 406aa3be6b32d5189b084e8a7cfbd3ed3640a145 # Parent a14c663152cce5bb144b5fa043edcb9197a6ad4c Minor adjustments to prevent a crash, correct a data type and fix drawing. diff -r a14c663152cc -r 406aa3be6b32 finch/libgnt/gntmain.c --- a/finch/libgnt/gntmain.c Fri Nov 09 01:45:10 2007 +0000 +++ b/finch/libgnt/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; } diff -r a14c663152cc -r 406aa3be6b32 finch/libgnt/gnttree.c --- a/finch/libgnt/gnttree.c Fri Nov 09 01:45:10 2007 +0000 +++ b/finch/libgnt/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) diff -r a14c663152cc -r 406aa3be6b32 finch/libgnt/gntws.h --- a/finch/libgnt/gntws.h Fri Nov 09 01:45:10 2007 +0000 +++ b/finch/libgnt/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; diff -r a14c663152cc -r 406aa3be6b32 finch/libgnt/test/Makefile --- a/finch/libgnt/test/Makefile Fri Nov 09 01:45:10 2007 +0000 +++ b/finch/libgnt/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