diff src/xmenu.c @ 13489:ddf90bfd3744

Don't include Xaw/Paned.h unless USE_LUCID is defined. (set_frame_menubar): Conditionalized some code on USE_LUCID that depends on the fact that the parent widget of the menu bar is an Xaw "Paned" widget.
author Richard M. Stallman <rms@gnu.org>
date Fri, 10 Nov 1995 18:55:48 +0000
parents 2e514396cbc8
children 645e14e39a2b
line wrap: on
line diff
--- a/src/xmenu.c	Fri Nov 10 18:04:18 1995 +0000
+++ b/src/xmenu.c	Fri Nov 10 18:55:48 1995 +0000
@@ -68,7 +68,9 @@
 #include <X11/CoreP.h>
 #include <X11/StringDefs.h>
 #include <X11/Shell.h>
+#ifdef USE_LUCID
 #include <X11/Xaw/Paned.h>
+#endif /* USE_LUCID */
 #include "../lwlib/lwlib.h"
 #else /* not USE_X_TOOLKIT */
 #include "../oldXMenu/XMenu.h"
@@ -1738,6 +1740,7 @@
 	    + f->output_data.x->menubar_widget->core.border_width)
 	 : 0);
 
+#ifdef USE_LUCID
     if (FRAME_EXTERNAL_MENU_BAR (f))
       {
         Dimension ibw = 0;
@@ -1745,6 +1748,7 @@
 		       XtNinternalBorderWidth, &ibw, NULL);
         menubar_size += ibw;
       }
+#endif /* USE_LUCID */
 
     f->output_data.x->menubar_height = menubar_size;
   }