index d89081052c0a6e233c700082ece29d8783dc2dc6..f1674efbc1cbc2cd797dca9a03e95d4757c98c9c 100644 (file)
/* -*-c-*- -------------- mixgtk_fontsel.c :
* Implementation of the functions declared in mixgtk_fontsel.h
* ------------------------------------------------------------------
- * Copyright (C) 2001, 2004, 2006, 2007 Free Software Foundation, Inc.
+ * Copyright (C) 2001, 2004, 2006, 2007, 2008 Free Software Foundation, Inc.
*
* 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
@@ -35,6 +35,7 @@ static const gchar *keys_[MIX_FONT_NO] = {
"Symbols.font", "Default.font"
};
+static const gchar *default_font_ = "Monospace 10";
/* initialise the font selection dialog */
static void
@@ -57,7 +58,7 @@ mixgtk_fontsel_set_font (mixgtk_font_t f, GtkWidget *w)
font = mixgtk_config_get (keys_[f]);
if (!font)
{
- mixgtk_config_update (keys_[f], "Monospace 10");
+ mixgtk_config_update (keys_[f], default_font_);
font = mixgtk_config_get (keys_[f]);
g_assert (font);
}
@@ -87,7 +88,7 @@ mixgtk_fontsel_query_font (mixgtk_font_t f, GtkWidget **w, size_t no)
current = mixgtk_config_get (keys_[f]);
gtk_font_selection_dialog_set_font_name (fontsel_dialog_,
- current? current : "Monospace 10");
+ current? current : default_font_);
while (result == GTK_RESPONSE_APPLY)
{
current = mixgtk_config_get (keys_[MIX_FONT_DEFAULT]);
gtk_font_selection_dialog_set_font_name (fontsel_dialog_,
- current? current : "Monospace");
+ current? current : default_font_);
while (result == GTK_RESPONSE_APPLY)
{
index 5c426222084efc54e47dbe33685669ae98c5830a..15b2a02279c440b708a82d70610dd696e6e70b79 100644 (file)
/* -*-c-*- ---------------- mixgtk_fontsel.h :
* Functions for handling font selection.
* ------------------------------------------------------------------
- * Copyright (C) 2001, 2004, 2006, 2007 Free Software Foundation, Inc.
+ * Copyright (C) 2001, 2004, 2006, 2007, 2008 Free Software Foundation, Inc.
*
* 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
@@ -44,6 +44,8 @@ mixgtk_fontsel_set_font (mixgtk_font_t f, GtkWidget *w);
extern gboolean
mixgtk_fontsel_query_font (mixgtk_font_t f, GtkWidget **ws, size_t no);
+extern void
+on_all_fonts_activate (void);
#endif /* MIXGTK_FONTSEL_H */