On Mon, 2004-04-12 at 10:48, Tilman Sauerbeck wrote:
Hi folks, I've got a problem with GtkNotebook: On startup, I add two pages to the notebook, each containing a GtkTreeView. However, the second treeview appears on the first notebook page.
It seems a problem with the gtk_widget_show_all() call.
Calling gtk_notebook_set_current_page (notebook, 1); gtk_notebook_set_current_page (notebook, 0); "fixes" it. Of course, I'd rather avoid that stupid workaround :)
Just show each tree instead of use gtk_widget_show_all.
IMHO, this looks like a bug in GTK, since the problem does *not* occur when I add GtkLabels instead of GtkTreeViews to the tab pages.
Yes it seems a bug indeed.
Any ideas? I attached some code to reproduce the problem.
Attached a possible fix. -- Iago Rubio - Home page * http://www.iagorubio.com - Last project * http://cssed.sourceforge.net - GPG Keyserv * pgp.rediris.es id=0x909BD4DD
Attachment:
notebook-weirdness.c
Description: Text Data
Attachment:
signature.asc
Description: This is a digitally signed message part