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 155336 - Menu items without submenu in menu bar
Menu items without submenu in menu bar
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Widget: GtkMenu
2.4.x
Other All
: Normal minor
: Small fix
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks: 152765
 
 
Reported: 2004-10-13 21:25 UTC by Jean-Philippe Chancelier
Modified: 2012-01-26 02:23 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
a small test program to illustrate the bug (1.25 KB, application/x-compressed-tar)
2004-10-13 21:27 UTC, Jean-Philippe Chancelier
Details
Test program extracted out of tarball (2.08 KB, text/plain)
2004-10-13 21:32 UTC, Owen Taylor
Details

Description Jean-Philippe Chancelier 2004-10-13 21:25:35 UTC
Please describe the problem:
a top level menu item without sub menus in 
a gtk_item_factory needs two clicks to be activated with gtk  2.4.7
or higher and only one click with gtk 2.2.4


Steps to reproduce:
a small test program is added in the report 
try to clik on the OK button 


Actual results:
two clicks are needed to activate the handler of the OK button 

Expected results:
I would prefer just one as it was the case with older versions of gtk 

Does this happen every time?
yes 

Other information:
Comment 1 Jean-Philippe Chancelier 2004-10-13 21:27:38 UTC
Created attachment 32582 [details]
a small test program to illustrate the bug
Comment 2 Owen Taylor 2004-10-13 21:32:17 UTC
Created attachment 32583 [details]
Test program extracted out of tarball
Comment 3 Owen Taylor 2004-10-13 21:36:09 UTC
I doubt this actually has anything to do with GtkItemFactory; most
likely it applies to any menuitem without a submenu in a menubar.

I'd tend to agree it is a bug, though fixing it might require some
special casing. You'd have to be careful that the right behavior
got preserved for keynav inside the menu ... keynaving to the
item definitely shouldn't activate it immediately.
Comment 4 Owen Taylor 2004-10-13 21:38:03 UTC
(BTW, if you are wondering about extracting the test program out of
the tarball, I have a directory where I dump test programs with
a Makefile

===
CFLAGS=`pkg-config --cflags gtk+-2.0` -g -Wall -O2
LDFLAGS=`pkg-config --libs gtk+-2.0`
===

so I can just save a single test file into that directory as,
say, chancelier.c and do 'make chancelier'. I suspect other
GTK+ developers have similar.)
Comment 5 Emmanuel Pacaud 2004-10-30 15:37:24 UTC
Please note that you don't really need two clicks to activate a menuitem without
submenu in a menubar, a long click also activates the menuitem.
Comment 6 Matthias Clasen 2012-01-26 02:23:04 UTC
I don't think a fix for this is going to happen. submenu-less items in menubars are simply not supported.