You should use the GTK_CLIST(clist) type cast macro rather than directly
doing the type cast yourself.  This will perform a few checks (eg. make
sure clist is not null, and that it really is a GtkCList), and reduces to
the simple typecast if debugging is turned off.  Try using it and see if
you get a more informative error message.

As for the error, are you sure you are initialising the clist variable
correctly?

James.

--
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


On Mon, 8 Nov 1999, nsmith wrote:

> Hi,
> 
> I am having a little trouble with the afore mentioned function.  Whenever I
> call it my system recieves a seg. fault.  basically the line(s) look like
> this:
> 
>          gtk_clist_append ((GtkCList *) clist, entry_text);
> 
> where clist is a GtkWidget type and entry_text is defined as gchar
> *entry_text[4].  I have tried switching clist to GtkCList type, with no
> better results.  I have examined the data in these variables (as best as I
> can) and don't see anything wrong.  The only thing I can see with clist is
> it's address, which stays the same from the time it is created to the time I
> get the seg. fault.  Entry_text I can look at the actual data and it is
> exactly what I put in.  What things can I look for to help solve this
> problem?  I am new to using GTK and it's been a long time since I did any
> programming (especially in c).  So I would appreciate any help.  Thanks
> 
> Nasa
> 
> 
> 
> +---------------------------------------------------------------------+
> To unsubscribe from this list, send a message to [EMAIL PROTECTED]
> with the line "unsubscribe glade-devel" in the body of the message.
> 


+---------------------------------------------------------------------+
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the line "unsubscribe glade-devel" in the body of the message.

Reply via email to