GNOME Bugzilla – Bug 406062
menu with new status icon api, is not show correctly (has arrows both in top and bottom)
Last modified: 2012-02-20 15:05:06 UTC
Video says it all http://www.barmen.nu/filer/Video/Other/gajimbug.avi we use status icon api and GTK 2.10.7
Cool video, but rather useless for reproducing and fixing the problem. Please attach a *minimal* but *complete* sample program written in C or Python that exhibits the bug as a single *source* file attachment. Also, please verify that the problem still occurs in 2.10.9.
I can't use GTK 2.10.9 as http://gladewin32.sourceforge.net/modules/news/ won't ship it. if you want an sample that illustrates the usage of status icon, I've written one for the PyGTK community. (installers for PyGTK can be found via pygtk.org) http://svn.gnome.org/viewcvs/pygtk/trunk/examples/pygtk-demo/demos/statusicon.py?rev=2794&view=markup
What prevents you from downloading the gtk+ 2.10.9 zipfile, unpacking it in some temporary location, and just include its bin folder in PATH when running your application? The sample program you linked to with just the "hi" menu item works fine for me (except that the menu doesn't automatically disappear when the cursor leaves it, but we already have a bug open for that).
really? look carefully and you will see instead of Hi an arrow. if not, then good to know you fixed it in super latest version :$
also gtk.org says as latest 2.10.6 so I thought 2.10.7 was super latest. atm I cannot test with your zip, but if you can't confirm, then good to know it's all fixed. about the menu not get hidden, that's another bug that you and me have talked about in the recent past, and I think it is considered a feature :$ (in the meaning that nobody will care to fix it as you said it's hard enough (even for you :P))
The "news" on www.gtk.org's main page apparently haven't been updates in a while. Anyway, I confirmed that when run against 2.10.6, the "hi" indeed didn't show up, just an arrow, and the menu in fact popped up at a more or less random place. (Which was the subject of your bug #377349). Can I assume this bug is then a duplicate of bug #377349 then?
okay, so you can repro with 2.10.6 but not with 2.10.9 (the arrows thing). Then close as it's fixed in latest version. Because with 2.10.7 position is CORRECT (not in the super top of screen) but arrows are still visible. Would be good if one day we see a fix for popdown to automatically happen too.
*** This bug has been marked as a duplicate of 377349 ***
I confirm that bug is not fixed. I tested the small exemple in bug #377349 with GTK-2.10.9, with more than one menuitem to see the problem more easily, and I still see the same problem as in the video linked in the first message.
Created attachment 108919 [details] at the beginning of menu is popuped It seems that this bug is not solved yet.
Created attachment 108920 [details] when mouse is moved onto the scroll arrow, menu items start to scroll upward
Created attachment 108921 [details] scroll finished, the menu items are all present.
Created attachment 108922 [details] if the taskbar is on the top of the screen, menu shows correctly
And what version of GTK+ are you using, Daniel? Can you provide a minimal but complete sample program in C or Python that shows the problem?
I confirm that with the linked little script (with 2-3 more menuitems to see it more clearly) GTK-2.12.9, PyGTK-2.12.1, the bug is still present.
Daniel, could you please answer Tors question from comment #14? Tor, is the answer from Yann in comment #15 sufficient for you to track this bug down?
I did some new tests with the attached script when using gtk.status_icon_position_menu, it does not work, I see the arrow. when not using gtk.status_icon_position_menu (the commented poopup() call in the attached script) it works : no arrow. GTK 2.14.3 PyGTK 2.12.1
Created attachment 127156 [details] test script
Reopening as a testscript has been provided.
Cannot watch the video as I get a few hundred "stream_ptr out of bounds" errors in both mplayer and totem/gstreamer. I tried the test script from comment 18 in GNOME 3.2 Fallback mode with a gnome-panel at the bottom of the screen. The three menu items were displayed correctly when right-clicking, no matter if the "menu.popup" line was commented or not. gtk.gtk_version = (2, 24, 8) gtk.pygtk_version = (2, 24, 0) Can this report be closed as RESOLVED OBSOLETE, or did I understand something totally wrong thanks to a missing explanation with words? :P
Reading the comments here and this looks like a win32 specific issue that should have been fixed in 2.24.8. Could affected people please test and report back? Thanks!
Is this still an issue in gtk >= 2.24.8?
I've tested with PyGTK 2.24.0 and GTK 2.24.10 -> no more bug, menu opens ok now.