GNOME Bugzilla – Bug 120477
Nested notebook popupmenu loses labels
Last modified: 2011-02-04 16:12:02 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)
Created attachment 19446 [details] deonstration app to reproduce the bug
Created attachment 19469 [details] C version of test case
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+
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
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.