After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 302283 - IconView gtk_widget_show()n later gets displayed, but wrong tab is selected
IconView gtk_widget_show()n later gets displayed, but wrong tab is selected
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkNotebook
2.6.x
Other Linux
: Normal minor
: Medium fix
Assigned To: gtk-bugs
gtk-bugs
: 123026 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-04-28 12:21 UTC by Patrik Fimml
Modified: 2005-05-06 19:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Bug demonstration (1.60 KB, text/x-csrc)
2005-04-28 12:23 UTC, Patrik Fimml
Details

Description Patrik Fimml 2005-04-28 12:21:07 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.
Comment 1 Patrik Fimml 2005-04-28 12:23:41 UTC
Created attachment 45782 [details]
Bug demonstration
Comment 2 Matthias Clasen 2005-04-29 20:07:20 UTC
This also occurs if you replace the two icon views by two entries.
Comment 3 Matthias Clasen 2005-05-04 03:57:23 UTC
*** Bug 123026 has been marked as a duplicate of this bug. ***
Comment 4 Matthias Clasen 2005-05-06 19:38:06 UTC
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)