changeset 21283:406aa3be6b32

Minor adjustments to prevent a crash, correct a data type and fix drawing.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 10 Nov 2007 01:18:15 +0000
parents a14c663152cc
children 6de09629f091
files finch/libgnt/gntmain.c finch/libgnt/gnttree.c finch/libgnt/gntws.h finch/libgnt/test/Makefile
diffstat 4 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }
--- 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)
--- 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;
--- 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