From: SourceForge.net <no...@so...> - 2009-12-30 01:26:50
|
Bugs item #2879789, was opened at 2009-10-15 11:42 Message generated for change (Settings changed) made by patthoyts You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=2879789&group_id=12997 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 10. Generic Menus Group: current: 8.6b1 >Status: Closed >Resolution: Fixed Priority: 7 Private: No Submitted By: Pawel Pawlak (mickey_knox) Assigned to: Todd Helfter (tmh) Summary: Item activating does not work as expected in torn-off menus Initial Comment: Consider the following example: . configure -menu .m menu .m .m add cascade -label "test" -menu .m.t menu .m.t .m.t add cascade -label "one" -menu .m.t.s1 .m.t add cascade -label "two" -menu .m.t.s2 menu .m.t.s1 menu .m.t.s2 Tear the "test" menu off. Expand the menu window width for better effect. Now move the mouse pointer over the submenu arrows - no item gets activated. Item activation occurs only when you move the mouse pointer between the left edge of the menu and the end of the menu item label, but when the item gets activated, the highlight is as wide as the menu window. The attached patch fixes this behaviour to what one would expect from a real menu. ---------------------------------------------------------------------- >Comment By: Pat Thoyts (patthoyts) Date: 2009-12-30 00:33 Message: I have applied a modified version of this to HEAD and core-8-5-branch and added a couple of extra tests. I've not dealt with the accelerator positioning in this patch. ---------------------------------------------------------------------- Comment By: Pat Thoyts (patthoyts) Date: 2009-12-28 01:41 Message: This seems to correct this issue on both Windows and also X11 menus. I notice if we add an accelerator then this does not anchor to the right side of the window which it probably should do. Gtk+ tearoff menus do activate over the whole width of the window too so this will help match the GNOME menus. I noted that Gtk+ torn-off menu windows are not resizable (at least not emacs menus). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=2879789&group_id=12997 |