GtkNotebook displays wrong contents without manual refresh



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.

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 :)

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.

Any ideas?
I attached some code to reproduce the problem.

-- 
Regards,
Tilman

Attachment: notebook-weirdness.c
Description: Text document



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