aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-06-14 07:17:39 +0800
committerChristian Persch <chpe@src.gnome.org>2003-06-14 07:17:39 +0800
commit2ccb8c916575d21e2862cc38f98f92ef0f1d7b27 (patch)
tree49238858470db54bf30bc29b09b52dfe84998eb4
parentf7f4b30f8e6d8f2a74114d3b8689ea921e0e4a86 (diff)
downloadgsoc2013-epiphany-2ccb8c916575d21e2862cc38f98f92ef0f1d7b27.tar
gsoc2013-epiphany-2ccb8c916575d21e2862cc38f98f92ef0f1d7b27.tar.gz
gsoc2013-epiphany-2ccb8c916575d21e2862cc38f98f92ef0f1d7b27.tar.bz2
gsoc2013-epiphany-2ccb8c916575d21e2862cc38f98f92ef0f1d7b27.tar.lz
gsoc2013-epiphany-2ccb8c916575d21e2862cc38f98f92ef0f1d7b27.tar.xz
gsoc2013-epiphany-2ccb8c916575d21e2862cc38f98f92ef0f1d7b27.tar.zst
gsoc2013-epiphany-2ccb8c916575d21e2862cc38f98f92ef0f1d7b27.zip
Fix previous change to actually work on anything else than en locales.
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.
-rw-r--r--ChangeLog6
-rw-r--r--src/prefs-dialog.c9
2 files changed, 13 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index c18206272..7949a2de6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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);