Fix segfault in mail folder (SF: 3007493)
[monky] / src / fonts.h
index 1c0093e..913b29e 100644 (file)
@@ -1,4 +1,6 @@
-/* Conky, a system monitor, based on torsmo
+/* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*-
+ *
+ * Conky, a system monitor, based on torsmo
  *
  * Any original torsmo code is licensed under the BSD license
  *
@@ -7,7 +9,7 @@
  * Please see COPYING for details
  *
  * Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
- * Copyright (c) 2005-2009 Brenden Matthews, Philip Kovacs, et. al.
+ * Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al.
  *     (see AUTHORS)
  * All rights reserved.
  *
@@ -24,6 +26,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  *
  */
+#ifdef X11
 #ifndef _FONTS_H
 #define _FONTS_H
 
@@ -62,17 +65,19 @@ struct font_list {
 
 #endif
 
-#define MAX_FONTS 64 // hmm, no particular reason, just makes sense.
+#define MAX_FONTS 256
 
 /* direct access to registered fonts (FIXME: bad encapsulation) */
 extern struct font_list *fonts;
 extern int selected_font;
 extern int font_count;
 
+void setup_fonts(void);
 void set_font(void);
-int addfont(const char *);
+int add_font(const char *);
 void set_first_font(const char *);
 void free_fonts(void);
 void load_fonts(void);
 
 #endif /* _FONTS_H */
+#endif /* X11 */