GNOME Bugzilla – Bug 302283
IconView gtk_widget_show()n later gets displayed, but wrong tab is selected
Last modified: 2005-05-06 19:38:06 UTC
If more GtkIconViews are in a GtkNotebook and gtk_notebook_append_page() is called before the widgets are shown, the one that is shown last gets displayed, though the first tab is selected (which isn't correct in some cases). Steps to reproduce: * create 2/more GtkIconViews * insert them into a GtkNotebook * gtk_widget_show() the one in the first tab, then * gtk_widget_show() the one in the second tab Workaround: gtk_widget_show() them in reversed order they are in GtkNotebook. This, of course, may also be a bug of GtkIconView.
Created attachment 45782 [details] Bug demonstration
This also occurs if you replace the two icon views by two entries.
*** Bug 123026 has been marked as a duplicate of this bug. ***
2005-05-06 Matthias Clasen <mclasen@redhat.com> * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): Always initialize child-visible to FALSE, otherwise we may end up with the wrong page visible initially. (#302283, Patrik Fimml)