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 406062 - menu with new status icon api, is not show correctly (has arrows both in top and bottom)
menu with new status icon api, is not show correctly (has arrows both in top ...
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkStatusIcon
2.10.x
Other Windows
: Normal major
: ---
Assigned To: gtk-win32 maintainers
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2007-02-09 12:02 UTC by Nikos Kouremenos
Modified: 2012-02-20 15:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
at the beginning of menu is popuped (6.93 KB, image/png)
2008-04-09 11:52 UTC, Daniel King
Details
when mouse is moved onto the scroll arrow, menu items start to scroll upward (9.16 KB, image/png)
2008-04-09 11:54 UTC, Daniel King
Details
scroll finished, the menu items are all present. (9.39 KB, image/png)
2008-04-09 11:54 UTC, Daniel King
Details
if the taskbar is on the top of the screen, menu shows correctly (37.22 KB, image/png)
2008-04-09 11:56 UTC, Daniel King
Details
test script (716 bytes, text/x-python)
2009-01-24 09:38 UTC, Yann Leboulanger
Details

Description Nikos Kouremenos 2007-02-09 12:02:36 UTC
Video says it all http://www.barmen.nu/filer/Video/Other/gajimbug.avi

we use status icon api and GTK 2.10.7
Comment 1 Tor Lillqvist 2007-02-09 13:10:34 UTC
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.
Comment 2 Nikos Kouremenos 2007-02-09 13:42:34 UTC
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
Comment 3 Tor Lillqvist 2007-02-09 13:56:19 UTC
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).
Comment 4 Nikos Kouremenos 2007-02-09 15:07:08 UTC
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 :$
Comment 5 Nikos Kouremenos 2007-02-09 15:09:02 UTC
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))
Comment 6 Tor Lillqvist 2007-02-09 16:10:16 UTC
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?
Comment 7 Nikos Kouremenos 2007-02-10 09:54:09 UTC
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.
Comment 8 Tor Lillqvist 2007-02-10 10:01:32 UTC

*** This bug has been marked as a duplicate of 377349 ***
Comment 9 Yann Leboulanger 2007-02-13 20:53:33 UTC
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.
Comment 10 Daniel King 2008-04-09 11:52:30 UTC
Created attachment 108919 [details]
at the beginning of menu is popuped

It seems that this bug is not solved yet.
Comment 11 Daniel King 2008-04-09 11:54:01 UTC
Created attachment 108920 [details]
when mouse is moved onto the scroll arrow, menu items start to scroll upward
Comment 12 Daniel King 2008-04-09 11:54:45 UTC
Created attachment 108921 [details]
scroll finished, the menu items are all present.
Comment 13 Daniel King 2008-04-09 11:56:11 UTC
Created attachment 108922 [details]
if the taskbar is on the top of the screen, menu shows correctly
Comment 14 Tor Lillqvist 2008-04-09 12:05:38 UTC
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?
Comment 15 Yann Leboulanger 2008-04-14 15:49:25 UTC
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.
Comment 16 Tobias Mueller 2009-01-24 00:03:29 UTC
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?
Comment 17 Yann Leboulanger 2009-01-24 09:37:19 UTC
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
Comment 18 Yann Leboulanger 2009-01-24 09:38:06 UTC
Created attachment 127156 [details]
test script
Comment 19 Tobias Mueller 2009-08-11 12:08:33 UTC
Reopening as a testscript has been provided.
Comment 20 André Klapper 2012-01-18 20:36:28 UTC
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
Comment 21 Dieter Verfaillie 2012-01-18 20:46:13 UTC
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!
Comment 22 André Klapper 2012-02-20 13:25:36 UTC
Is this still an issue in gtk >= 2.24.8?
Comment 23 Yann Leboulanger 2012-02-20 14:59:28 UTC
I've tested with PyGTK 2.24.0 and GTK 2.24.10 -> no more bug, menu opens ok now.