# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1300681552 0 # Node ID df6091308b3fd7e5481a9219042c315127939f86 # Parent fda93b441c4d5ebb40719b8436389209b6769ba0 Have the basics of containers working now with the tree view widget. diff -r fda93b441c4d -r df6091308b3f gtk3/dw.c --- a/gtk3/dw.c Mon Mar 21 01:33:51 2011 +0000 +++ b/gtk3/dw.c Mon Mar 21 04:25:52 2011 +0000 @@ -5345,6 +5345,7 @@ static int _dw_container_setup(HWND handle, unsigned long *flags, char **titles, int count, int separator, int extra) { int z; + char numbuf[20]; GtkWidget *tree; GtkListStore *store; GtkTreeViewColumn *col, *expander = NULL; @@ -5352,14 +5353,11 @@ GtkTreeSelection *sel; int _locked_by_me = FALSE; GType *array = calloc(count + 2, sizeof(gint)); - unsigned long *newflags = calloc(count, sizeof(unsigned long)); - - memcpy(newflags, flags, count * sizeof(unsigned long)); DW_MUTEX_LOCK; /* Save some of the info so it is easily accessible */ - g_object_set_data(G_OBJECT(handle), "_dw_cont_col_flags", (gpointer)newflags); g_object_set_data(G_OBJECT(handle), "_dw_cont_columns", GINT_TO_POINTER(count)); + g_object_set_data(G_OBJECT(handle), "_dw_cont_extra", GINT_TO_POINTER(extra)); /* First param is row title/data */ array[0] = G_TYPE_POINTER; @@ -5394,6 +5392,8 @@ /* Second loop... create the columns */ for(z=0;z