diff options
author | Alexander Gramiak <agrambot@gmail.com> | 2019-03-16 11:46:39 -0600 |
---|---|---|
committer | Alexander Gramiak <agrambot@gmail.com> | 2019-03-16 13:15:07 -0600 |
commit | cc06d76865a7a98b5fd4edd03a044f2baefb85a9 (patch) | |
tree | bebc69c07239c84cbaf8693f99d25d099fcd2072 /src/menu.c | |
parent | 7d8fe1f9f66110b23972869496e2000e9c35bb6d (diff) | |
download | emacs-cc06d76865a7a98b5fd4edd03a044f2baefb85a9.tar.gz |
Define macros to abstract support for external menu/tool-bars
* src/lisp.h (HAVE_EXT_MENU_BAR)
(HAVE_EXT_TOOL_BAR): Define.
*src/dispnew.c:
*src/frame.c:
*src/frame.h:
*src/keyboard.c:
*src/menu.c:
*src/menu.h:
*src/window.c:
*src/window.h:
*src/xdisp.c:
*src/xfns: Use the new macros.
Diffstat (limited to 'src/menu.c')
-rw-r--r-- | src/menu.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/menu.c b/src/menu.c index 7d255fddac4..7f46e68e73e 100644 --- a/src/menu.c +++ b/src/menu.c @@ -170,8 +170,7 @@ ensure_menu_items (int items) } } -#if (defined USE_X_TOOLKIT || defined USE_GTK || defined HAVE_NS \ - || defined HAVE_NTGUI) +#ifdef HAVE_EXT_MENU_BAR /* Begin a submenu. */ @@ -195,7 +194,7 @@ push_submenu_end (void) menu_items_submenu_depth--; } -#endif /* USE_X_TOOLKIT || USE_GTK || HAVE_NS || defined HAVE_NTGUI */ +#endif /* HAVE_EXT_MENU_BAR */ /* Indicate boundary between left and right. */ |