diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/prefs-dialog.c | 9 |
2 files changed, 13 insertions, 2 deletions
@@ -1,5 +1,11 @@ 2003-06-14 Christian Persch <chpe@cvs.gnome.org> + * src/prefs-dialog.c: (create_fonts_language_menu): + + Fix previous change to actually work on anything else than en locales. + +2003-06-14 Christian Persch <chpe@cvs.gnome.org> + * src/ephy-tab.c: (ephy_tab_get_property), (ephy_tab_set_property), (ephy_tab_class_init), (ephy_tab_get_visibility), (ephy_tab_visibility_cb): diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c index 131c1b48b..4746a043b 100644 --- a/src/prefs-dialog.c +++ b/src/prefs-dialog.c @@ -701,9 +701,14 @@ create_fonts_language_menu (PrefsDialog *dialog) gtk_option_menu_set_menu (GTK_OPTION_MENU(optionmenu), menu); lang_codes = g_new0 (char *, n_fonts_languages); - for (i = 0; i < n_fonts_languages; i++) + i = 0; + for (l = dialog->priv->fonts_languages; l != NULL; l = l->next) { - lang_codes[i] = fonts_language[i].code; + FontsLanguageInfo *info = (FontsLanguageInfo *) l->data; + + lang_codes[i] = info->code; + + i++; } ephy_dialog_add_enum (EPHY_DIALOG (dialog), FONTS_LANGUAGE_PROP, n_fonts_languages, (const char **) lang_codes); |