Tk Source Code

View Ticket
Login
Ticket UUID: 2920409
Title: TIP#360: Modernize menus on X11
Type: Patch Version: TIP Implementation
Submitter: patthoyts Created on: 2009-12-24 00:20:41
Subsystem: 12. Unix Menus Assigned To: patthoyts
Priority: 7 High Severity:
Status: Closed Last Modified: 2010-01-09 08:16:53
Resolution: Accepted Closed By: patthoyts
    Closed on: 2010-01-09 01:16:53
Description:
The following patches are intended to make Tk menus on X Windows function more like GNOME menus. The first patch makes the dropdown menus follow the mouse once they have initially been activated. This is the behaviour seen on Windows menus and is also used by GNOME. Currently a user must click to open every cascade menu. If the original functionality is desired, the *Menu.clickToFocus option can be set (or call tk::classic:;restore menu).
The second stops pinning the Help menu to the extreme right of the menubar. Again the old behaviour can be restored. This time by setting the *Menu.useMotifHelp option or by calling tk::classic::restore menu.

The patches are based on core-8-5-branch and these versions incorporate suggestions from tcl-core (delayed post cascade, option database override)
User Comments: patthoyts added on 2010-01-09 08:16:53:

allow_comments - 1

patthoyts added on 2010-01-09 08:16:51:
TIP vote was successful.
Applied to 8.6
Applied to 8.5.

patthoyts added on 2010-01-03 05:13:46:
Refreshed the patches again including man page modification. (against 8.5).

patthoyts added on 2010-01-03 05:12:54:

File Added - 357474: 0002-unix-menus-Remove-special-handling-of-.help-menu.patch

patthoyts added on 2010-01-03 05:12:34:

File Added - 357473: 0001-unix-menus-Make-Tk-menu-activation-follow-mouse-move.patch

patthoyts added on 2010-01-03 05:12:01:

File Deleted - 356323:

patthoyts added on 2009-12-24 07:21:16:

File Added - 356323: 0002-unix-menus-Remove-special-handling-of-.help-menu.patch

patthoyts added on 2009-12-24 07:20:42:

File Added - 356322: 0001-unix-menus-Make-Tk-menu-activation-follow-mouse-mov.patch

Attachments: