Skip to content

Conversation

@ychin
Copy link
Member

@ychin ychin commented Sep 9, 2020

Fix tmenu to work when it's called after the menu has already been created, by implementing gui_mch_menu_set_tip. This works for menus, tool bar, and Touch Bar (see #1084 which added tmenu support for TouchBar).

Also, fix Touch Bar's submenu handling to reuse more common shared function. Previously enabling/disabling/removing Touch Bar submenu items didn't work as it had a hard-coded length check.

Fix `tmenu` to work when it's called after the menu has already been
created, by implementing `gui_mch_menu_set_tip`. This works for menus,
tool bar, and Touch Bar (see macvim-dev#1084 which added tmenu support for
TouchBar).

Also, fix Touch Bar's submenu handling to reuse more common shared
function. Previously enabling/disabling/removing Touch Bar submenu items
didn't work as it had a hard-coded length check.
@ychin ychin added this to the snapshot-166 milestone Sep 9, 2020
@ychin ychin merged commit e34eb59 into macvim-dev:master Sep 9, 2020
@ychin ychin deleted the touchbar_tmenu_support branch September 9, 2020 08:24
@ychin ychin changed the title Fix tmenu in MacVim and submenu handling in TouchBar Fix tmenu in MacVim and submenu handling in Touch Bar Sep 9, 2020
@ychin ychin added the Input Issues related to keyboard or other types of input label Sep 9, 2020
ychin referenced this pull request Sep 14, 2020
- Add the declaration for gui_mch_menu_set_tip in proto
- On prior to 10.12 comment out the declarations of touchbar methods
@ychin ychin added UI Issues related to UI elements, tabs, scrollbars, window resizing, etc. and removed Input Issues related to keyboard or other types of input labels Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

UI Issues related to UI elements, tabs, scrollbars, window resizing, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant