[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#34885: [PATCH] Define macros to abstract support for external menu/t
From: |
Eli Zaretskii |
Subject: |
bug#34885: [PATCH] Define macros to abstract support for external menu/tool-bars |
Date: |
Sat, 16 Mar 2019 20:55:20 +0200 |
> From: Alex <agrambot@gmail.com>
> Date: Sat, 16 Mar 2019 12:12:13 -0600
>
> This should help readability and to ease possible addition of new window
> systems that support external menu bars or tool-bars.
>
> Is this okay to apply?
LGTM, thanks. Except that...
> diff --git a/src/window.h b/src/window.h
> index b450173eb2..8090096fb8 100644
> --- a/src/window.h
> +++ b/src/window.h
> @@ -728,6 +728,17 @@ wset_next_buffers (struct window *w, Lisp_Object val)
> (FRAME_INTERNAL_BORDER_WIDTH (WINDOW_XFRAME (W)) \
> + WINDOW_RIGHT_PIXEL_EDGE (W))
>
> +/* Define if the windowing system provides a menu bar. */
> +#if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI) \
> + || defined (HAVE_NS) || defined (USE_GTK)
> +#define HAVE_EXT_MENU_BAR true
> +#endif
> +
> +/* Define if the windowing system provides a tool-bar. */
> +#if defined (USE_GTK) || defined (HAVE_NS)
> +#define HAVE_EXT_TOOL_BAR true
> +#endif
... please put these in lisp.h, not in window.h.