mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 8.2.4677: the Athena GUI support is outdated
Problem: The Athena GUI support is outdated. Solution: Remove the Athena GUI code.
This commit is contained in:
10
src/menu.c
10
src/menu.c
@@ -609,10 +609,6 @@ add_menu_path(
|
||||
#ifdef FEAT_BEVAL_TIP
|
||||
menu->tip = NULL;
|
||||
#endif
|
||||
#ifdef FEAT_GUI_ATHENA
|
||||
menu->image = None; // X-Windows definition for NULL
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Add after menu that has lower priority.
|
||||
*/
|
||||
@@ -2072,10 +2068,7 @@ gui_update_menus_recurse(vimmenu_T *menu, int mode)
|
||||
grey = FALSE;
|
||||
else
|
||||
grey = TRUE;
|
||||
# ifdef FEAT_GUI_ATHENA
|
||||
// Hiding menus doesn't work for Athena, it can cause a crash.
|
||||
gui_mch_menu_grey(menu, grey);
|
||||
# else
|
||||
|
||||
// Never hide a toplevel menu, it may make the menubar resize or
|
||||
// disappear. Same problem for ToolBar items.
|
||||
if (vim_strchr(p_go, GO_GREY) != NULL || menu->parent == NULL
|
||||
@@ -2086,7 +2079,6 @@ gui_update_menus_recurse(vimmenu_T *menu, int mode)
|
||||
gui_mch_menu_grey(menu, grey);
|
||||
else
|
||||
gui_mch_menu_hidden(menu, grey);
|
||||
# endif
|
||||
gui_update_menus_recurse(menu->children, mode);
|
||||
menu = menu->next;
|
||||
}
|
||||
|
Reference in New Issue
Block a user