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 552642 - submenu not working in statusicon popup menu
submenu not working in statusicon popup menu
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: Win32
2.24.x
Other Windows
: Normal major
: ---
Assigned To: gtk-win32 maintainers
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2008-09-17 14:13 UTC by Yann Leboulanger
Modified: 2011-12-21 08:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test script (928 bytes, text/plain)
2008-09-17 14:14 UTC, Yann Leboulanger
Details

Description Yann Leboulanger 2008-09-17 14:13:07 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:
Comment 1 Yann Leboulanger 2008-09-17 14:14:06 UTC
Created attachment 118878 [details]
test script
Comment 2 Yann Leboulanger 2008-09-27 15:42:06 UTC
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.
Comment 3 Yann Leboulanger 2008-10-01 06:38:30 UTC
this makes statusicon useless for users.
Comment 4 Colin Leroy 2008-11-18 15:27:07 UTC
I noticed the same behaviour with C GTK, but only on Windows. This is rather annoying.
Comment 5 Colin Leroy 2008-11-18 15:40:07 UTC
a workaround is possible by passing 0 as button parameter in gtk_menu_popup().
Comment 6 Dieter Verfaillie 2010-12-23 21:29:15 UTC
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+.
Comment 7 Dieter Verfaillie 2011-12-21 08:38:25 UTC
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.