#include "intervals.h"
#include "keyboard.h"
-#ifdef USE_X_TOOLKIT
+#if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI)
extern void set_frame_menubar ();
#endif
previous_echo_glyphs = echo_area_glyphs;
}
-#ifdef HAVE_X_WINDOWS
+#ifdef HAVE_WINDOW_SYSTEM
static char frame_title_buf[512];
static char *frame_title_ptr;
int len;
FRAME_PTR f = XFRAME (frame);
- if (!FRAME_X_P (f) || FRAME_MINIBUF_ONLY_P (f) || f->explicit_name)
+ if (!(FRAME_WINDOW_P (f) || FRAME_MINIBUF_ONLY_P (f) || f->explicit_name))
return;
/* Do we have more than one visible frame on this X display? */
create its menu bar using the name `emacs' if no other name
has yet been specified."
I think that is no longer a concern. */
-#ifdef HAVE_X_WINDOWS
+#ifdef HAVE_WINDOW_SYSTEM
if (windows_or_buffers_changed)
{
Lisp_Object tail, frame;
w->update_mode_line = Qt;
if (
-#ifdef USE_X_TOOLKIT
+#ifdef FRAME_EXTERNAL_MENU_BAR
FRAME_EXTERNAL_MENU_BAR (f)
#else
FRAME_MENU_BAR_LINES (f) > 0
call0 (Qrecompute_lucid_menubar);
call1 (Vrun_hooks, Qmenu_bar_update_hook);
FRAME_MENU_BAR_ITEMS (f) = menu_bar_items (FRAME_MENU_BAR_ITEMS (f));
-#ifdef USE_X_TOOLKIT
+#if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI)
set_frame_menubar (f, 0, 0);
-#endif /* USE_X_TOOLKIT */
+#endif /* USE_X_TOOLKIT || HAVE_NTGUI */
unbind_to (count, Qnil);
set_buffer_internal_1 (prev);
/* When we reach a frame's selected window, redo the frame's menu bar. */
if (update_mode_line
-#ifdef USE_X_TOOLKIT
+#ifdef FRAME_EXTERNAL_MENU_BAR
&& FRAME_EXTERNAL_MENU_BAR (f)
#else
&& FRAME_MENU_BAR_LINES (f) > 0
/* Did we hit a face change? Figure out what face we should
use now. We also hit this the first time through the
loop, to see what face we should start with. */
- if (pos >= next_face_change && FRAME_X_P (f))
+ if (pos >= next_face_change && (FRAME_WINDOW_P (f)))
current_face = compute_char_face (f, w, pos,
region_beg, region_end,
&next_face_change, pos + 50, 0);
int hpos = 0;
int i;
-#ifndef USE_X_TOOLKIT
+#if !defined (USE_X_TOOLKIT) && !defined (HAVE_NTGUI)
if (FRAME_MENU_BAR_LINES (f) <= 0)
return;
vpos++;
while (vpos < FRAME_MENU_BAR_LINES (f))
get_display_line (f, vpos++, 0);
-#endif /* not USE_X_TOOLKIT */
+#endif /* not USE_X_TOOLKIT && not HAVE_NTGUI */
}
\f
/* Display the mode line for window w */