From 6d33a0791ace9a6ef6b0a8eed7b259bc2337bf21 Mon Sep 17 00:00:00 2001 From: Elliot Lee Date: Fri, 9 Jan 1998 04:14:58 +0000 Subject: [PATCH] gtkclist: allow adding a new row without having to give text for it (i.e. if you want to put all pixmaps) --- gtk/gtkclist.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gtk/gtkclist.c b/gtk/gtkclist.c index 001b750cdb..290814c2b6 100644 --- a/gtk/gtkclist.c +++ b/gtk/gtkclist.c @@ -940,9 +940,10 @@ gtk_clist_append (GtkCList * clist, clist->row_list_end = (g_list_append (clist->row_list_end, clist_row))->next; /* set the text in the row's columns */ - for (i = 0; i < clist->columns; i++) - if (text[i]) - gtk_clist_cell_set_text (clist, clist_row, i, text[i]); + if(text) + for (i = 0; i < clist->columns; i++) + if (text[i]) + gtk_clist_cell_set_text (clist, clist_row, i, text[i]); /* redraw the list if it's not frozen */ if (!GTK_CLIST_FROZEN (clist))