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/lisp.h | |
| 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/lisp.h')
| -rw-r--r-- | src/lisp.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lisp.h b/src/lisp.h index 4391e173741..cb142b9d8ad 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -3327,6 +3327,17 @@ extern int staticidx; | |||
| 3327 | struct window; | 3327 | struct window; |
| 3328 | struct frame; | 3328 | struct frame; |
| 3329 | 3329 | ||
| 3330 | /* Define if the windowing system provides a menu bar. */ | ||
| 3331 | #if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI) \ | ||
| 3332 | || defined (HAVE_NS) || defined (USE_GTK) | ||
| 3333 | #define HAVE_EXT_MENU_BAR true | ||
| 3334 | #endif | ||
| 3335 | |||
| 3336 | /* Define if the windowing system provides a tool-bar. */ | ||
| 3337 | #if defined (USE_GTK) || defined (HAVE_NS) | ||
| 3338 | #define HAVE_EXT_TOOL_BAR true | ||
| 3339 | #endif | ||
| 3340 | |||
| 3330 | /* Copy COUNT Lisp_Objects from ARGS to contents of V starting from OFFSET. */ | 3341 | /* Copy COUNT Lisp_Objects from ARGS to contents of V starting from OFFSET. */ |
| 3331 | 3342 | ||
| 3332 | INLINE void | 3343 | INLINE void |