Commit 68a90caf authored by Tim Janik's avatar Tim Janik
Browse files

few checks added -timj

few checks added
-timj
parent c4c1c1ea
......@@ -380,6 +380,9 @@ gtk_clist_init (GtkCList * clist)
GTK_WIDGET_UNSET_FLAGS (clist, GTK_NO_WINDOW);
GTK_CLIST_SET_FLAGS (clist, CLIST_FROZEN);
clist->row_mem_chunk = NULL;
clist->cell_mem_chunk = NULL;
clist->rows = 0;
clist->row_center_offset = 0;
clist->row_height = 0;
......@@ -423,6 +426,11 @@ gtk_clist_construct (GtkCList * clist,
{
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 */
clist->row_mem_chunk = g_mem_chunk_new ("clist row mem chunk",
sizeof (GtkCListRow),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment