Re: GtkNotebook displays wrong contents without manual refresh
- From: Tilman Sauerbeck <tilman code-monkey de>
- To: gtk-app-devel-list gnome org
- Subject: Re: GtkNotebook displays wrong contents without manual refresh
- Date: Mon, 12 Apr 2004 12:30:48 +0200
Tilman Sauerbeck <tilman code-monkey de> [2004-04-12 12:19]:
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.
As Vincent Torri pointed out in private mail:
That's because you show the notebook pages *after* having showed the
main window. So you show the last notebook page.
I'm happy again :)
--
Regards,
Tilman
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]