few checks added -timj

few checks added
-timj
This commit is contained in:
Tim Janik 1998-02-28 22:36:06 +00:00
parent c4c1c1ea55
commit 68a90caf45

View File

@ -380,6 +380,9 @@ gtk_clist_init (GtkCList * clist)
GTK_WIDGET_UNSET_FLAGS (clist, GTK_NO_WINDOW); GTK_WIDGET_UNSET_FLAGS (clist, GTK_NO_WINDOW);
GTK_CLIST_SET_FLAGS (clist, CLIST_FROZEN); GTK_CLIST_SET_FLAGS (clist, CLIST_FROZEN);
clist->row_mem_chunk = NULL;
clist->cell_mem_chunk = NULL;
clist->rows = 0; clist->rows = 0;
clist->row_center_offset = 0; clist->row_center_offset = 0;
clist->row_height = 0; clist->row_height = 0;
@ -423,6 +426,11 @@ gtk_clist_construct (GtkCList * clist,
{ {
int i; int i;
g_return_if_fail (clist != NULL);
g_return_if_fail (GTK_IS_CLIST (clist));
g_return_if_fail (clist->row_mem_chunk == NULL);
/* initalize memory chunks */ /* initalize memory chunks */
clist->row_mem_chunk = g_mem_chunk_new ("clist row mem chunk", clist->row_mem_chunk = g_mem_chunk_new ("clist row mem chunk",
sizeof (GtkCListRow), sizeof (GtkCListRow),