gw0kin / gnome2-globalmenu

Automatically exported from code.google.com/p/gnome2-globalmenu
GNU General Public License v2.0
0 stars 0 forks source link

Menu bar not shown when added to a running program #639

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The gnome2-globalmenu applet doesn't pick up a menu-bar when you introduce it 
to a running gtk application.

I attach a test case. (It's in Python, but I actually tripped over the bug in a 
C++ program, so the language/bindings don't matter.)

The oddest thing is that, depending on the order of the show_all() call, the 
applet will or will not detect the menu bar. It works when you call show_all() 
after you add it to the container:
window.add (menubar)
menubar.show_all()

But it does not work when you do it the reverse:
menubar.show_all()
window.add (menubar)

It also won't work if you do both:
menubar.show_all()
window.add (menubar)
menubar.show_all()

By the way, it doesn't matter if you add the menu bar directly to the window, 
or indirectly by using a container. I just tried to keep the test case as 
simple as possible.

Original issue reported on code.google.com by rpmcr...@gmail.com on 31 Oct 2010 at 6:56

Attachments: