Re: clist seg fault...



but the array is already only length 1... and could you explain why it
needs to be NULL-terminated? thanks,

Rok

On 15 Jan 2002, Havoc Pennington wrote:


Mike <maddoc en com> writes:
so you might try this:

gchar *string[1];
GtkWidget *info_list;

string[0] = g_strdup(".............");
gtk_clist_append( (GtkClist *)info_list, string);


You need to NULL-terminate the array so string[2] and string[1] = NULL
in addition to the above.

Havoc





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]