Re: clist seg fault...
- From: Mike <maddoc en com>
- To: Rok Roskar <rroskar artsci wustl edu>, <gtk-app-devel-list gnome org>
- Subject: Re: clist seg fault...
- Date: Tue, 15 Jan 2002 19:34:35 -0500
On Tuesday 15 January 2002 06:22 pm, Rok Roskar wrote:
I cant figure out why the following seg faults... I would really
appreciate any ideas...
char string[100];
GtkWidget *info_list;
info_list = lookup_widget(scaling_dialog,"scaling_list");
sprintf(string,"..........");
// the next line seg faults
gtk_clist_append(info_list,string);
The clist I'm using is a 1-column clist if that has anything to do with
it... thanks for the help...
Rok
The prototype for gtk_clist_append is:
gtk_clist_append( *GtkClist *list, gchar *text[ ] )
so you might try this:
gchar *string[1];
GtkWidget *info_list;
string[0] = g_strdup(".............");
gtk_clist_append( (GtkClist *)info_list, string);
Hope this helps,
Mike
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]