Problem with clist (segfault) , Bug ?



Hi All.

I have a strange problem with the compound list.

I have created one clist, which is (at the start) displayed without any
rows in it.
Upon user action a subroutine clears the clist and fills the rows with data,
each row contains 5 columns with just text.
The height is selected to just show 7 lines at once, in a normal
case this is enough.
But under some circumstances the programm will use more (20-70) rows.
In this case the problem happens.

If I set up GTK_AUTOMATIC_POLICY for rows and columns with 
gtk_clist_set_policy at the moment more than let's say 30 or 40 rows are
appended to the clist, it always segfaults giving me 
** error **  caught sigsegv !!
It does this whether I freeze the clist and unfreeze it with gtk_clist_thaw
or not.
When I do not freeze the clist I cann see that all rows are appended and
then it segfaults.
This never happens with the default policy, which is scrollbars displayed
always.
System is Linux 2.0.30, gtk is 1.0.4. (compiled with gcc 2.7.2.1 and libc5)

Is this a known bug ? 
Or am I doing something wrong ?

I can setup a small example, if it is needed. 

Also (but this is undoubtedly my error) I have not yet been able to clear
a text widget.
I tried it with gtk_text_backward_delete and gtk_text_forward_delete,
and I tried it with editable set to true and set to false.
Also I tried to set points and then tried to delete from there on.
Didn't work.
Someone enlighten me about this.
I can always insert text anyway, but never erase anything from it.

Thank you for your time.


Ciao Christoph   (grover@hottemax.uni-muenster.de)
+--------------
  finger grover@hottemax.uni-muenster.de for PGP public key
  http://hottemax.uni-muenster.de/~grover/index.html
  Microsoft spel checcar vor sayl, works grate !!



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