]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fx_create_frame): Do xlwmenu hack only if USE_LUCID.
authorKarl Heuer <kwzh@gnu.org>
Tue, 16 Jul 1996 23:13:51 +0000 (23:13 +0000)
committerKarl Heuer <kwzh@gnu.org>
Tue, 16 Jul 1996 23:13:51 +0000 (23:13 +0000)
src/xfns.c

index e3c32396f133b3ed95ce55b3205af0444f518310..74229c6d67e54a79e4435211c4804b51d2144ebf 100644 (file)
@@ -89,8 +89,10 @@ extern void _XEditResCheckMessages ();
    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 @@ This function is an internal primitive--use `make-frame' instead.")
                         "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;