summaryrefslogtreecommitdiffstats
path: root/src/menu.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-04-03 18:02:37 +0100
committerBram Moolenaar <Bram@vim.org>2022-04-03 18:02:37 +0100
commit0b962e5685edd41b55d5427b894797e725707639 (patch)
tree0b6bddeb6a2c7da603b71474b87f185dc14a02ea /src/menu.c
parent292e1b9f681054a1de8fa22315ae6eedd7acb205 (diff)
patch 8.2.4677: the Athena GUI support is outdatedv8.2.4677
Problem: The Athena GUI support is outdated. Solution: Remove the Athena GUI code.
Diffstat (limited to 'src/menu.c')
-rw-r--r--src/menu.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/menu.c b/src/menu.c
index 1c5cc4acb3..2af54a7621 100644
--- a/src/menu.c
+++ b/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;
}