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 120477 - Nested notebook popupmenu loses labels
Nested notebook popupmenu loses labels
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
2.2.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2003-08-22 13:15 UTC by Hyriand
Modified: 2011-02-04 16:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
deonstration app to reproduce the bug (825 bytes, text/plain)
2003-08-22 13:17 UTC, Hyriand
Details
C version of test case (1.52 KB, text/plain)
2003-08-24 05:25 UTC, James Henstridge
Details

Description Hyriand 2003-08-22 13:15:48 UTC
When an application has a nested notebook, the popupmenu in a
"sub-notebook" that has been shown will lose their labels after a popupmenu
of a different "sub-noteook" is shown.
(f.e. an application has a notebook of which both the first and the second
tab contain a notebook with enablepopup. Right click on the first
"sub-notebook" of the first "main-tab", then switch to the second main-tab,
right click on the sub-notebook, switch back to the first main-tab and
right-click on the sub-notebook again)
Comment 1 Hyriand 2003-08-22 13:17:00 UTC
Created attachment 19446 [details]
deonstration app to reproduce the bug
Comment 2 James Henstridge 2003-08-24 05:25:01 UTC
Created attachment 19469 [details]
C version of test case
Comment 3 James Henstridge 2003-08-24 05:28:57 UTC
I just transliterated your example program into C, and observe the
same behaviour.  This indicates that the problem is not PyGTK's fault.
 I tested with the latest release of GTK from the gtk-2-2 branch.

=> reassigning to gtk+
Comment 4 Owen Taylor 2003-08-25 13:09:38 UTC
It's a reasonably trivial problem - gtk_notebook_forall()
is including the menu labels, so they get unmapped when
the notebook is unmapped (gtk_container_unmap() uses
gtk_container_forall())

http://mail.gnome.org/archives/gtk-devel-list/2003-August/msg00192.html
Comment 5 Owen Taylor 2003-08-25 21:35:00 UTC
Mon Aug 25 17:28:04 2003  Owen Taylor  <otaylor@redhat.com>
                                                                     
          
        * gtk/gtknotebook.c (gtk_notebook_forall): Don't
        include page->menu_label - causes various problems,
        including #12047.