diff options
| author | Alexander Gramiak | 2019-03-16 11:46:39 -0600 |
|---|---|---|
| committer | Alexander Gramiak | 2019-03-16 13:15:07 -0600 |
| commit | cc06d76865a7a98b5fd4edd03a044f2baefb85a9 (patch) | |
| tree | bebc69c07239c84cbaf8693f99d25d099fcd2072 /src/menu.c | |
| parent | 7d8fe1f9f66110b23972869496e2000e9c35bb6d (diff) | |
| download | emacs-cc06d76865a7a98b5fd4edd03a044f2baefb85a9.tar.gz emacs-cc06d76865a7a98b5fd4edd03a044f2baefb85a9.zip | |
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) | |||
| 170 | } | 170 | } |
| 171 | } | 171 | } |
| 172 | 172 | ||
| 173 | #if (defined USE_X_TOOLKIT || defined USE_GTK || defined HAVE_NS \ | 173 | #ifdef HAVE_EXT_MENU_BAR |
| 174 | || defined HAVE_NTGUI) | ||
| 175 | 174 | ||
| 176 | /* Begin a submenu. */ | 175 | /* Begin a submenu. */ |
| 177 | 176 | ||
| @@ -195,7 +194,7 @@ push_submenu_end (void) | |||
| 195 | menu_items_submenu_depth--; | 194 | menu_items_submenu_depth--; |
| 196 | } | 195 | } |
| 197 | 196 | ||
| 198 | #endif /* USE_X_TOOLKIT || USE_GTK || HAVE_NS || defined HAVE_NTGUI */ | 197 | #endif /* HAVE_EXT_MENU_BAR */ |
| 199 | 198 | ||
| 200 | /* Indicate boundary between left and right. */ | 199 | /* Indicate boundary between left and right. */ |
| 201 | 200 | ||