move Font config options to Other Prefs/Display/Fonts
authorPaul Mangan <paul@claws-mail.org>
Mon, 29 Sep 2003 13:09:51 +0000 (13:09 +0000)
committerPaul Mangan <paul@claws-mail.org>
Mon, 29 Sep 2003 13:09:51 +0000 (13:09 +0000)
ChangeLog.claws
configure.ac
po/POTFILES.in
src/Makefile.am
src/main.c
src/prefs_common.c
src/prefs_fonts.c [new file with mode: 0644]
src/prefs_fonts.h [new file with mode: 0644]

index 2e5863e..d32811e 100644 (file)
@@ -1,3 +1,13 @@
+2003-09-29 [paul]      0.9.5claws37
+
+       * po/POTFILES.in
+         src/Makefile.am
+         src/main.c
+         src/prefs_common.[ch]
+         src/prefs_fonts.[ch]  ** NEW FILES **
+               move Font config options to Other Prefs/Display/Fonts
+               (user's current configuration is preserved)
+
 2003-09-29 [paul]      0.9.5claws36
 
        * src/inc.c
index d01f1e7..2b265bf 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=5
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=36
+EXTRA_VERSION=37
 if test $EXTRA_VERSION -eq 0; then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
 else
index 59e4735..1124ced 100644 (file)
@@ -75,6 +75,7 @@ src/prefs_customheader.c
 src/prefs_display_header.c
 src/prefs_filtering.c
 src/prefs_folder_item.c
+src/prefs_fonts.c
 src/prefs_gtk.c
 src/prefs_matcher.c
 src/prefs_scoring.c
index b395295..3cb0ede 100644 (file)
@@ -84,6 +84,7 @@ sylpheed_SOURCES = \
        prefs_filtering.c \
        prefs_filtering_action.c \
        prefs_folder_item.c \
+       prefs_fonts.c \
        prefs_gtk.c \
        prefs_matcher.c \
        prefs_scoring.c \
@@ -205,6 +206,7 @@ sylpheedinclude_HEADERS = \
        prefs_filtering.h \
        prefs_filtering_action.h \
        prefs_folder_item.h \
+       prefs_fonts.h \
        prefs_gtk.h \
        prefs_matcher.h \
        prefs_scoring.h \
index de91e65..93b58ef 100644 (file)
@@ -51,6 +51,7 @@
 #include "prefs_common.h"
 #include "prefs_account.h"
 #include "prefs_actions.h"
+#include "prefs_fonts.h"
 #include "prefs_spelling.h"
 #include "scoring.h"
 #include "prefs_display_header.h"
@@ -272,6 +273,7 @@ int main(int argc, char *argv[])
        gpgme_register_idle(idle_function_for_gpgme);
 #endif
 
+       prefs_fonts_init();
 #ifdef USE_ASPELL
        gtkaspell_checkers_init();
        prefs_spelling_init();
@@ -380,6 +382,7 @@ int main(int argc, char *argv[])
 
        addressbook_destroy();
 
+       prefs_fonts_done();
 #ifdef USE_ASPELL       
        prefs_spelling_done();
        gtkaspell_checkers_quit();
index 759208c..3808caa 100644 (file)
@@ -131,12 +131,12 @@ static struct Quote {
 } quote;
 
 static struct Display {
-       GtkWidget *entry_textfont;
+/*     GtkWidget *entry_textfont;
        GtkWidget *button_textfont;
 
        GtkWidget *entry_smallfont;
        GtkWidget *entry_normalfont;
-       GtkWidget *entry_boldfont;
+       GtkWidget *entry_boldfont; */
 
        GtkWidget *chkbtn_folder_unread;
        GtkWidget *entry_ng_abbrev_len;
@@ -231,8 +231,8 @@ static struct KeybindDialog {
        GtkWidget *combo;
 } keybind;
 
-static GtkWidget *font_sel_win;
-static guint font_sel_conn_id; 
+/* static GtkWidget *font_sel_win;
+static guint font_sel_conn_id;  */
 static GtkWidget *quote_color_win;
 static GtkWidget *color_dialog;
 
@@ -423,21 +423,13 @@ static PrefParam param[] = {
        {"widget_font", NULL, &prefs_common.widgetfont, P_STRING,
         NULL, NULL, NULL},
        {"message_font", "-misc-fixed-medium-r-normal--14-*-*-*-*-*-*-*",
-        &prefs_common.textfont, P_STRING,
-        &display.entry_textfont,
-        prefs_set_data_from_entry, prefs_set_entry},
+        &prefs_common.textfont, P_STRING, NULL, NULL, NULL},
        {"small_font",   "-*-helvetica-medium-r-normal--10-*-*-*-*-*-*-*",
-        &prefs_common.smallfont,   P_STRING,
-        &display.entry_smallfont,
-        prefs_set_data_from_entry, prefs_set_entry},
+        &prefs_common.smallfont,   P_STRING, NULL, NULL, NULL},
        {"bold_font",    "-*-helvetica-bold-r-normal--12-*-*-*-*-*-*-*",
-        &prefs_common.boldfont,    P_STRING,
-        &display.entry_boldfont,
-        prefs_set_data_from_entry, prefs_set_entry},
+        &prefs_common.boldfont,    P_STRING, NULL, NULL, NULL},
        {"normal_font",  "-*-helvetica-medium-r-normal--12-*-*-*-*-*-*-*",
-        &prefs_common.normalfont,  P_STRING,
-        &display.entry_normalfont, 
-        prefs_set_data_from_entry, prefs_set_entry},
+        &prefs_common.normalfont,  P_STRING, NULL, NULL, NULL},
 
 
        {"display_folder_unread_num", "TRUE",
@@ -858,13 +850,13 @@ static void set_button_bg_color                   (GtkWidget      *widget,
 static void prefs_enable_message_color_toggled (void);
 static void prefs_recycle_colors_toggled       (GtkWidget      *widget);
 
-static void prefs_font_select  (GtkButton *button, GtkEntry *entry);
+/* static void prefs_font_select       (GtkButton *button, GtkEntry *entry);
 
 static void prefs_font_selection_key_pressed   (GtkWidget      *widget,
                                                 GdkEventKey    *event,
                                                 gpointer        data);
 static void prefs_font_selection_ok            (GtkButton      *button, GtkEntry *entry);
-
+*/
 static void prefs_keybind_select               (void);
 static gint prefs_keybind_deleted              (GtkWidget      *widget,
                                                 GdkEventAny    *event,
@@ -1744,11 +1736,11 @@ static void prefs_quote_create(void)
 static void prefs_display_create(void)
 {
        GtkWidget *vbox1;
-       GtkWidget *frame_font;
+/*     GtkWidget *frame_font;
        GtkWidget *table1;
        GtkWidget *label_textfont;
        GtkWidget *entry_textfont;
-       GtkWidget *button_textfont;
+       GtkWidget *button_textfont; */
        GtkWidget *chkbtn_transhdr;
        GtkWidget *chkbtn_folder_unread;
        GtkWidget *hbox1;
@@ -1765,14 +1757,14 @@ static void prefs_display_create(void)
        GtkWidget *button_datefmt;
        GtkWidget *entry_datefmt;
        GtkWidget *button_dispitem;
-       GtkWidget *tmplabel, *tmpbutton, *tmpentry;
+/*     GtkWidget *tmplabel, *tmpbutton, *tmpentry; */
 
        vbox1 = gtk_vbox_new (FALSE, VSPACING);
        gtk_widget_show (vbox1);
        gtk_container_add (GTK_CONTAINER (dialog.notebook), vbox1);
        gtk_container_set_border_width (GTK_CONTAINER (vbox1), VBOX_BORDER);
 
-       PACK_FRAME(vbox1, frame_font, _("Font"));
+/*     PACK_FRAME(vbox1, frame_font, _("Font"));
 
        table1 = gtk_table_new (4, 3, FALSE);
 
@@ -1857,7 +1849,7 @@ static void prefs_display_create(void)
        gtk_signal_connect (GTK_OBJECT(tmpbutton), "clicked",
                                GTK_SIGNAL_FUNC(prefs_font_select), tmpentry);
        display.entry_boldfont = tmpentry;
-
+*/
        vbox2 = gtk_vbox_new (FALSE, 0);
        gtk_widget_show (vbox2);
        gtk_box_pack_start (GTK_BOX (vbox1), vbox2, FALSE, TRUE, 0);
@@ -1949,8 +1941,8 @@ static void prefs_display_create(void)
                            GTK_SIGNAL_FUNC (prefs_summary_column_open),
                            NULL);
 
-       display.entry_textfont  = entry_textfont;
-       display.button_textfont = button_textfont;
+/*     display.entry_textfont  = entry_textfont;
+       display.button_textfont = button_textfont; */
 
        display.chkbtn_transhdr           = chkbtn_transhdr;
        display.chkbtn_folder_unread      = chkbtn_folder_unread;
@@ -3255,7 +3247,7 @@ static void prefs_recycle_colors_toggled(GtkWidget *widget)
        is_active = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget));
        prefs_common.recycle_quote_colors = is_active;
 }
-
+/*
 static void prefs_font_select(GtkButton *button, GtkEntry *entry)
 {
        gchar *font_name;
@@ -3324,7 +3316,7 @@ static void prefs_font_selection_ok(GtkButton *button, GtkEntry *entry)
 
        gtk_widget_hide(font_sel_win);
 }
-
+*/
 static void prefs_keybind_select(void)
 {
        GtkWidget *window;
diff --git a/src/prefs_fonts.c b/src/prefs_fonts.c
new file mode 100644 (file)
index 0000000..dbea794
--- /dev/null
@@ -0,0 +1,309 @@
+/*
+ * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
+ * Copyright (C) 2003 Hiroyuki Yamamoto & the Sylpheed-Claws team
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifdef HAVE_CONFIG_H
+#  include "config.h"
+#endif
+
+#include "defs.h"
+
+#include <stdio.h>
+#include <stdlib.h>
+
+#include <glib.h>
+#include <gtk/gtk.h>
+#include <gdk/gdkkeysyms.h>
+
+#include "intl.h"
+#include "utils.h"
+#include "prefs_common.h"
+#include "prefs_gtk.h"
+
+#include "gtk/gtkutils.h"
+#include "gtk/prefswindow.h"
+
+typedef struct _FontsPage
+{
+       PrefsPage page;
+
+       GtkWidget *window;              /* do not modify */
+
+       GtkWidget *label_textfont;
+       GtkWidget *entry_textfont;
+       GtkWidget *entry_smallfont;
+       GtkWidget *entry_normalfont;
+       GtkWidget *entry_boldfont;
+       GtkWidget *button_textfont;
+} FontsPage;
+
+static GtkWidget *font_sel_win;
+static guint font_sel_conn_id;
+
+static void prefs_font_select  (GtkButton *button, GtkEntry *entry);
+
+static void prefs_font_selection_key_pressed   (GtkWidget      *widget,
+                                                GdkEventKey    *event,
+                                                gpointer        data);
+static void prefs_font_selection_ok            (GtkButton      *button, GtkEntry *entry);
+
+static void prefs_font_select(GtkButton *button, GtkEntry *entry)
+{
+       gchar *font_name;
+       
+       g_return_if_fail(entry != NULL);
+       
+       if (!font_sel_win) {
+               font_sel_win = gtk_font_selection_dialog_new
+                       (_("Font selection"));
+               gtk_window_position(GTK_WINDOW(font_sel_win),
+                                   GTK_WIN_POS_CENTER);
+               gtk_signal_connect(GTK_OBJECT(font_sel_win), "delete_event",
+                                  GTK_SIGNAL_FUNC(gtk_widget_hide_on_delete),
+                                  NULL);
+               gtk_signal_connect
+                       (GTK_OBJECT(font_sel_win), "key_press_event",
+                        GTK_SIGNAL_FUNC(prefs_font_selection_key_pressed),
+                        NULL);
+               gtk_signal_connect_object
+                       (GTK_OBJECT(GTK_FONT_SELECTION_DIALOG(font_sel_win)->cancel_button),
+                        "clicked",
+                        GTK_SIGNAL_FUNC(gtk_widget_hide_on_delete),
+                        GTK_OBJECT(font_sel_win));
+       }
+
+       if(font_sel_conn_id) {
+               gtk_signal_disconnect(GTK_OBJECT(GTK_FONT_SELECTION_DIALOG(font_sel_win)->ok_button), font_sel_conn_id);
+       }
+       font_sel_conn_id = gtk_signal_connect
+               (GTK_OBJECT(GTK_FONT_SELECTION_DIALOG(font_sel_win)->ok_button),
+                "clicked",
+                GTK_SIGNAL_FUNC(prefs_font_selection_ok),
+                entry);
+       printf("%i\n", font_sel_conn_id);
+
+       font_name = gtk_editable_get_chars(GTK_EDITABLE(entry), 0, -1);
+       gtk_font_selection_dialog_set_font_name(GTK_FONT_SELECTION_DIALOG(font_sel_win), font_name);
+       g_free(font_name);
+       manage_window_set_transient(GTK_WINDOW(font_sel_win));
+       gtk_window_set_modal(GTK_WINDOW(font_sel_win), TRUE);
+       gtk_widget_grab_focus
+               (GTK_FONT_SELECTION_DIALOG(font_sel_win)->ok_button);
+       gtk_widget_show(font_sel_win);
+}
+
+static void prefs_font_selection_key_pressed(GtkWidget *widget,
+                                            GdkEventKey *event,
+                                            gpointer data)
+{
+       if (event && event->keyval == GDK_Escape)
+               gtk_widget_hide(font_sel_win);
+}
+
+static void prefs_font_selection_ok(GtkButton *button, GtkEntry *entry)
+{
+       gchar *fontname;
+
+       fontname = gtk_font_selection_dialog_get_font_name
+               (GTK_FONT_SELECTION_DIALOG(font_sel_win));
+
+       if (fontname) {
+               gtk_entry_set_text(entry, fontname);
+
+               g_free(fontname);
+       }
+
+       gtk_widget_hide(font_sel_win);
+}
+
+void prefs_fonts_create_widget(PrefsPage *_page, GtkWindow *window, 
+                              gpointer data)
+{
+       FontsPage *prefs_fonts = (FontsPage *) _page;
+
+       GtkWidget *table;
+       GtkWidget *frame_font;
+       GtkWidget *table1;
+       GtkWidget *label_textfont;
+       GtkWidget *entry_textfont;
+       GtkWidget *entry_smallfont;
+       GtkWidget *entry_boldfont;
+       GtkWidget *entry_normalfont;
+       GtkWidget *button_textfont;
+       GtkWidget *tmplabel, *tmpbutton;
+       GtkWidget *vbox;
+       GtkWidget *hint_label;
+
+       table = gtk_table_new(8, 3, FALSE);
+       gtk_widget_show(table);
+       gtk_container_set_border_width(GTK_CONTAINER(table), 8);
+       gtk_table_set_row_spacings(GTK_TABLE(table), 4);
+       gtk_table_set_col_spacings(GTK_TABLE(table), 8);
+
+       label_textfont = gtk_label_new (_("Text"));
+       gtk_widget_show (label_textfont);
+       gtk_table_attach (GTK_TABLE (table), label_textfont, 0, 1, 0, 1,
+                        (GtkAttachOptions) (GTK_FILL),
+                        (GtkAttachOptions) (0), 0, 0);
+       gtk_label_set_justify(GTK_LABEL(tmplabel), GTK_JUSTIFY_RIGHT);
+       gtk_misc_set_alignment(GTK_MISC(label_textfont), 1, 0.5);
+
+       entry_textfont = gtk_entry_new ();
+       gtk_widget_show (entry_textfont);
+       gtk_table_attach (GTK_TABLE (table), entry_textfont, 1, 2, 0, 1,
+                        (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                        (GtkAttachOptions) (0), 0, 0);
+       gtk_entry_set_text(GTK_ENTRY(entry_textfont), prefs_common.textfont);
+
+       button_textfont = gtk_button_new_with_label (" ... ");
+
+       gtk_widget_show (button_textfont);
+       gtk_table_attach (GTK_TABLE (table), button_textfont, 2, 3, 0, 1,
+                         0, 0, 0, 0);
+       gtk_signal_connect (GTK_OBJECT (button_textfont), "clicked",
+                           GTK_SIGNAL_FUNC (prefs_font_select), entry_textfont);
+
+       tmplabel = gtk_label_new (_("Small"));
+       gtk_widget_show (tmplabel);
+       gtk_table_attach (GTK_TABLE (table), tmplabel, 0, 1, 1, 2,
+                        (GtkAttachOptions) GTK_FILL,
+                        (GtkAttachOptions) (0), 0, 0);
+       gtk_label_set_justify(GTK_LABEL(tmplabel), GTK_JUSTIFY_RIGHT);
+       gtk_misc_set_alignment(GTK_MISC(tmplabel), 1, 0.5);
+
+       entry_smallfont = gtk_entry_new ();
+       gtk_widget_show (entry_smallfont);
+       gtk_table_attach (GTK_TABLE (table), entry_smallfont, 1, 2, 1, 2,
+                        (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                        (GtkAttachOptions) (0), 0, 0);
+       gtk_entry_set_text(GTK_ENTRY(entry_smallfont), prefs_common.smallfont);
+
+       tmpbutton = gtk_button_new_with_label (" ... ");
+       gtk_widget_show (tmpbutton);
+       gtk_table_attach (GTK_TABLE (table), tmpbutton, 2, 3, 1, 2,
+                         0, 0, 0, 0);
+       gtk_signal_connect (GTK_OBJECT(tmpbutton), "clicked",
+                           GTK_SIGNAL_FUNC(prefs_font_select), entry_smallfont);
+
+       tmplabel = gtk_label_new (_("Normal"));
+       gtk_widget_show (tmplabel);
+       gtk_table_attach (GTK_TABLE (table), tmplabel, 0, 1, 2, 3,
+                        (GtkAttachOptions) GTK_FILL,
+                        (GtkAttachOptions) (0), 0, 0);
+       gtk_label_set_justify(GTK_LABEL(tmplabel), GTK_JUSTIFY_RIGHT);
+       gtk_misc_set_alignment(GTK_MISC(tmplabel), 1, 0.5);
+
+       entry_normalfont = gtk_entry_new ();
+       gtk_widget_show (entry_normalfont);
+       gtk_table_attach (GTK_TABLE (table), entry_normalfont, 1, 2, 2, 3,
+                        (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                        (GtkAttachOptions) (0), 0, 0);
+       gtk_entry_set_text(GTK_ENTRY(entry_normalfont), prefs_common.normalfont);
+
+       tmpbutton = gtk_button_new_with_label (" ... ");
+       gtk_widget_show (tmpbutton);
+       gtk_table_attach (GTK_TABLE (table), tmpbutton, 2, 3, 2, 3,
+                         0, 0, 0, 0);
+       gtk_signal_connect (GTK_OBJECT(tmpbutton), "clicked",
+                               GTK_SIGNAL_FUNC(prefs_font_select), entry_normalfont);
+
+       tmplabel = gtk_label_new (_("Bold"));
+       gtk_widget_show (tmplabel);
+       gtk_table_attach (GTK_TABLE (table), tmplabel, 0, 1, 3, 4,
+                        (GtkAttachOptions) GTK_FILL,
+                        (GtkAttachOptions) (0), 0, 0);
+       gtk_label_set_justify(GTK_LABEL(tmplabel), GTK_JUSTIFY_RIGHT);
+       gtk_misc_set_alignment(GTK_MISC(tmplabel), 1, 0.5);
+
+       entry_boldfont = gtk_entry_new ();
+       gtk_widget_show (entry_boldfont);
+       gtk_table_attach (GTK_TABLE (table), entry_boldfont, 1, 2, 3, 4,
+                        (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                        (GtkAttachOptions) (0), 0, 0);
+       gtk_entry_set_text(GTK_ENTRY(entry_boldfont), prefs_common.boldfont);
+
+       tmpbutton = gtk_button_new_with_label (" ... ");
+       gtk_widget_show (tmpbutton);
+       gtk_table_attach (GTK_TABLE (table), tmpbutton, 2, 3, 3, 4,
+                         0, 0, 0, 0);
+       gtk_signal_connect (GTK_OBJECT(tmpbutton), "clicked",
+                               GTK_SIGNAL_FUNC(prefs_font_select), entry_boldfont);
+
+       vbox = gtk_vbox_new(FALSE, VSPACING_NARROW);
+       gtk_widget_show(vbox);
+       gtk_table_attach (GTK_TABLE (table), vbox, 0, 4, 4, 5,
+                        (GtkAttachOptions) (GTK_FILL),
+                        (GtkAttachOptions) (0), 0, 0);
+       
+       hint_label = gtk_label_new (_("You will need to restart for the "
+                                     "changes to take effect"));
+       gtk_widget_show (hint_label);
+       gtk_box_pack_start (GTK_BOX (vbox), 
+                           hint_label, FALSE, FALSE, 0);
+       gtk_misc_set_alignment(GTK_MISC(hint_label), 0, 0.5);
+
+       prefs_fonts->window             = GTK_WIDGET(window);
+       prefs_fonts->entry_textfont     = entry_textfont;
+       prefs_fonts->entry_smallfont    = entry_smallfont;
+       prefs_fonts->entry_normalfont   = entry_normalfont;
+       prefs_fonts->entry_boldfont     = entry_boldfont;
+       prefs_fonts->button_textfont    = button_textfont;
+
+       prefs_fonts->page.widget = table;
+}
+
+void prefs_fonts_save(PrefsPage *_page)
+{
+       FontsPage *fonts = (FontsPage *) _page;
+
+       prefs_common.textfont   = gtk_editable_get_chars
+               (GTK_EDITABLE(fonts->entry_textfont), 0, -1);
+       prefs_common.smallfont  = gtk_editable_get_chars
+               (GTK_EDITABLE(fonts->entry_smallfont), 0, -1);
+       prefs_common.boldfont   = gtk_editable_get_chars
+               (GTK_EDITABLE(fonts->entry_boldfont), 0, -1);
+       prefs_common.normalfont = gtk_editable_get_chars
+               (GTK_EDITABLE(fonts->entry_normalfont), 0, -1);
+}
+static void prefs_fonts_destroy_widget(PrefsPage *_page)
+{
+       /* FontsPage *fonts = (FontsPage *) _page; */
+
+}
+
+FontsPage *prefs_fonts;
+
+void prefs_fonts_init(void)
+{
+       FontsPage *page;
+
+       page = g_new0(FontsPage, 1);
+       page->page.path = _("Display/Fonts");
+       page->page.create_widget = prefs_fonts_create_widget;
+       page->page.destroy_widget = prefs_fonts_destroy_widget;
+       page->page.save_page = prefs_fonts_save;
+       page->page.weight = 60.0;
+       prefs_gtk_register_page((PrefsPage *) page);
+       prefs_fonts = page;
+}
+
+void prefs_fonts_done(void)
+{
+       prefs_gtk_unregister_page((PrefsPage *) prefs_fonts);
+       g_free(prefs_fonts);
+}
diff --git a/src/prefs_fonts.h b/src/prefs_fonts.h
new file mode 100644 (file)
index 0000000..d9ce513
--- /dev/null
@@ -0,0 +1,26 @@
+/*
+ * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
+ * Copyright (C) 2003 Hiroyuki Yamamoto & the Sylpheed-Claws team
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef PREFS_FONTS_H
+#define PREFS_FONTS_H
+
+void prefs_fonts_init  (void);
+void prefs_fonts_done  (void);
+
+#endif /* PREFS_FONTS_H */