From 2ccb8c916575d21e2862cc38f98f92ef0f1d7b27 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Fri, 13 Jun 2003 23:17:39 +0000 Subject: Fix previous change to actually work on anything else than en locales. 2003-06-14 Christian Persch * src/prefs-dialog.c: (create_fonts_language_menu): Fix previous change to actually work on anything else than en locales. --- ChangeLog | 6 ++++++ src/prefs-dialog.c | 9 +++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c18206272..7949a2de6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-06-14 Christian Persch + + * 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 * src/ephy-tab.c: (ephy_tab_get_property), (ephy_tab_set_property), 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); -- cgit v1.2.3