GNOME Bugzilla – Bug 552642
submenu not working in statusicon popup menu
Last modified: 2011-12-21 08:38:25 UTC
Please describe the problem: activate callback in submenu of a statusicon popup menu are not called. see attached script Steps to reproduce: 1. run attached script 2. click in asd -> asdf menuitem Actual results: nothing is printed (callback is not called) Expected results: "cb" should be printed in console. Does this happen every time? Yes Other information:
Created attachment 118878 [details] test script
In fact they work if we right click on them instead of left click. Maybe it's just a typo somewhere? Strange thing is that they work with left click when menuitems are not in a submenu.
this makes statusicon useless for users.
I noticed the same behaviour with C GTK, but only on Windows. This is rather annoying.
a workaround is possible by passing 0 as button parameter in gtk_menu_popup().
This still happens with gtk+_2.22.0 and pygtk-2.22.0. As it has been confirmed in comment 4 to also happen from C, I've moved this to gtk+.
Tested with current gtk-2-24 branch and PyGTK 2.24.0: the attached test script works as expected: cb is called() both when left and right clicking the asd -> asdf menuitem . This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.