Assertion error with clist/scrolled_window/tables
- From: rhfreeman <rhfreeman micron com>
- To: "'gtk-list redhat com'" <gtk-list redhat com>
- Subject: Assertion error with clist/scrolled_window/tables
- Date: Thu, 2 Sep 1999 07:42:56 -0600
This is my first post, so be nice :)
I've been trying to use a scrolled_window to add a scroll bar to my clist.
It does actually work, BUT I get an assertion error in gtk_table_attach -
which is this....
"Gtk-CRITICAL **: file gtktable.c: line 507 (gtk_table_attach): assertion
`child->parent == NULL' failed."
The code which makes this happen is this.....
gtk_table_attach_defaults (GTK_TABLE(table), scrolled, 0, 1, 0, 5);
clist = gtk_clist_new_with_titles(1, title);
gtk_clist_set_column_max_width (GTK_CLIST(clist), 0, 150);
gtk_table_attach_defaults (GTK_TABLE(table), clist, 0, 1, 0, 5);
Is there some other way to attach it so this error does not happen? Like I
said, it does actually work fine!
Also - how would I go about changing font size/colour in the clist?
Thanks in advance for your help,
] [Thread Prev