]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FontInfo.C
Yet more dialog tweaking from Rob.
[lyx.git] / src / frontends / xforms / FontInfo.C
index c9dd2e1839010d434723cf08a355c613dd9deff4..fb47dd683207e007e0a893b3b7dfb6aa006773cc 100644 (file)
@@ -1,12 +1,13 @@
-/* This file is part of
- * ======================================================
+/**
+ * \file FontInfo.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *           LyX, The Document Processor
+ * \author Asger Alstrup
+ * \author John Levon 
  *
- *         Copyright 1997 Asger Alstrup
- *           and the LyX Team.
- *
- * ====================================================== */
+ * Full author contact details are available in file CREDITS
+ */
 
 #include <config.h>
 
 #include "support/lstrings.h"
 #include "support/lyxlib.h"
 
-#include "frontends/GUIRunTime.h"
-
 #include <cmath>       // abs()
 
 using std::endl;
 using std::abs;
 
+#include FORMS_H_LOCATION
 
 /// Load font close to this size
 string const FontInfo::getFontname(int size)
@@ -119,7 +119,7 @@ void FontInfo::query()
 
        char ** list = 0;
        if (lyxrc.use_gui)
-               list = XListFonts(GUIRunTime::x11Display(), pattern.c_str(),
+               list = XListFonts(fl_get_display(), pattern.c_str(),
                                  100, &matches);
 
        if (list == 0) {