changeset 15720:f1549b7501af

(Fx_create_frame): Do xlwmenu hack only if USE_LUCID.
author Karl Heuer <kwzh@gnu.org>
date Tue, 16 Jul 1996 23:13:51 +0000
parents fdac027af4e1
children 6d54ca02c76d
files src/xfns.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Tue Jul 16 22:39:31 1996 +0000
+++ b/src/xfns.c	Tue Jul 16 23:13:51 1996 +0000
@@ -89,8 +89,10 @@
    Library.  */
 extern LWLIB_ID widget_id_tick;
 
+#ifdef USE_LUCID
 /* This is part of a kludge--see lwlib/xlwmenu.c.  */
 extern XFontStruct *xlwmenu_default_font;
+#endif
 
 extern void free_frame_menubar ();
 #endif /* USE_X_TOOLKIT */
@@ -3147,7 +3149,7 @@
 			 "font", "Font", string);
   }
 
-#ifdef USE_X_TOOLKIT
+#ifdef USE_LUCID
   /* Prevent lwlib/xlwmenu.c from crashing because of a bug
      whereby it fails to get any font.  */
   xlwmenu_default_font = f->output_data.x->font;