aboutsummaryrefslogtreecommitdiffstats
path: root/src/frame.c
diff options
context:
space:
mode:
authorAlexander Gramiak2019-03-16 11:46:39 -0600
committerAlexander Gramiak2019-03-16 13:15:07 -0600
commitcc06d76865a7a98b5fd4edd03a044f2baefb85a9 (patch)
treebebc69c07239c84cbaf8693f99d25d099fcd2072 /src/frame.c
parent7d8fe1f9f66110b23972869496e2000e9c35bb6d (diff)
downloademacs-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/frame.c')
-rw-r--r--src/frame.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/frame.c b/src/frame.c
index 46bdf222315..d0c77149ba8 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -70,7 +70,7 @@ static struct frame *last_nonminibuf_frame;
70bool frame_garbaged; 70bool frame_garbaged;
71 71
72/* The default tool bar height for future frames. */ 72/* The default tool bar height for future frames. */
73#if defined USE_GTK || defined HAVE_NS 73#ifdef HAVE_EXT_TOOL_BAR
74enum { frame_default_tool_bar_height = 0 }; 74enum { frame_default_tool_bar_height = 0 };
75#else 75#else
76int frame_default_tool_bar_height; 76int frame_default_tool_bar_height;
@@ -712,7 +712,7 @@ adjust_frame_size (struct frame *f, int new_width, int new_height, int inhibit,
712 if ((FRAME_TERMCAP_P (f) && !pretend) || FRAME_MSDOS_P (f)) 712 if ((FRAME_TERMCAP_P (f) && !pretend) || FRAME_MSDOS_P (f))
713 FrameCols (FRAME_TTY (f)) = new_cols; 713 FrameCols (FRAME_TTY (f)) = new_cols;
714 714
715#if defined (HAVE_WINDOW_SYSTEM) && ! defined (USE_GTK) && ! defined (HAVE_NS) 715#if defined (HAVE_WINDOW_SYSTEM) && ! defined (HAVE_EXT_TOOL_BAR)
716 if (WINDOWP (f->tool_bar_window)) 716 if (WINDOWP (f->tool_bar_window))
717 { 717 {
718 XWINDOW (f->tool_bar_window)->pixel_width = new_windows_width; 718 XWINDOW (f->tool_bar_window)->pixel_width = new_windows_width;
@@ -848,7 +848,7 @@ make_frame (bool mini_p)
848 f->no_accept_focus = false; 848 f->no_accept_focus = false;
849 f->z_group = z_group_none; 849 f->z_group = z_group_none;
850 f->tooltip = false; 850 f->tooltip = false;
851#if ! defined (USE_GTK) && ! defined (HAVE_NS) 851#ifndef HAVE_EXT_TOOL_BAR
852 f->last_tool_bar_item = -1; 852 f->last_tool_bar_item = -1;
853#endif 853#endif
854#ifdef NS_IMPL_COCOA 854#ifdef NS_IMPL_COCOA