mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-29 06:51:10 +00:00
few checks added -timj
few checks added -timj
This commit is contained in:
parent
c4c1c1ea55
commit
68a90caf45
@ -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),
|
||||||
|
Loading…
Reference in New Issue
Block a user