diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2003-05-27 05:13:03 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-05-27 05:13:03 +0800 |
commit | 3f91d766156e07b491c27bc447fb7800cc7b4cdd (patch) | |
tree | c6fd21b549d42d2d420bf0f2980a751236d7c990 /src | |
parent | a991c432844c98ff65cca9765f5e8e3cf25d19b3 (diff) | |
download | gsoc2013-epiphany-3f91d766156e07b491c27bc447fb7800cc7b4cdd.tar gsoc2013-epiphany-3f91d766156e07b491c27bc447fb7800cc7b4cdd.tar.gz gsoc2013-epiphany-3f91d766156e07b491c27bc447fb7800cc7b4cdd.tar.bz2 gsoc2013-epiphany-3f91d766156e07b491c27bc447fb7800cc7b4cdd.tar.lz gsoc2013-epiphany-3f91d766156e07b491c27bc447fb7800cc7b4cdd.tar.xz gsoc2013-epiphany-3f91d766156e07b491c27bc447fb7800cc7b4cdd.tar.zst gsoc2013-epiphany-3f91d766156e07b491c27bc447fb7800cc7b4cdd.zip |
Refactored the charset and language groups strings.
2003-05-26 Christian Persch <chpe@cvs.gnome.org>
* embed/mozilla/mozilla-i18n.h:
* embed/mozilla/mozilla-i18n.c:
* embed/mozilla/mozilla-embed-single.c: (fill_charsets_list),
(impl_get_charset_titles):
* embed/mozilla/mozilla-notifiers.c: (mozilla_notifiers_init):
* lib/ephy-langs.h:
* src/prefs-dialog.c: (setup_font_menu):
Refactored the charset and language groups strings.
Diffstat (limited to 'src')
-rw-r--r-- | src/prefs-dialog.c | 31 |
1 files changed, 6 insertions, 25 deletions
diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c index 3ae29f0e5..8e7793d16 100644 --- a/src/prefs-dialog.c +++ b/src/prefs-dialog.c @@ -28,6 +28,7 @@ #include "ephy-gui.h" #include "eel-gconf-extensions.h" #include "language-editor.h" +#include "ephy-langs.h" #include <bonobo/bonobo-i18n.h> #include <gtk/gtkframe.h> @@ -71,26 +72,6 @@ void prefs_language_more_button_clicked_cb (GtkWidget *button, EphyDialog *dialog); -/* FIXME duped in mozilla/ */ -const -char *lang_encode[] = -{ - "x-western", - "x-central-euro", - "ja", - "zh-TW", - "zh-CN", - "ko", - "x-cyrillic", - "x-baltic", - "el", - "tr", - "x-unicode", - "th", - "he", - "ar" -}; - static const struct { @@ -399,12 +380,12 @@ setup_font_menu (PrefsDialog *dialog, (EPHY_EMBED_SHELL (ephy_shell)); ephy_embed_single_get_font_list (single, - lang_encode[dialog->priv->language], + lang_encode_item[dialog->priv->language], type, &fonts, &default_font); /* Get the default font */ sprintf (key, "%s_%s_%s", CONF_RENDERING_FONT, type, - lang_encode[dialog->priv->language]); + lang_encode_item[dialog->priv->language]); name = eel_gconf_get_string (key); if (name == NULL) { @@ -454,7 +435,7 @@ save_font_menu (PrefsDialog *dialog, sprintf (key, "%s_%s_%s", CONF_RENDERING_FONT, fonts_types[type], - lang_encode[dialog->priv->language]); + lang_encode_item[dialog->priv->language]); eel_gconf_set_string (key, name); g_free (name); } @@ -510,7 +491,7 @@ size_spinbutton_changed_cb (GtkWidget *spin, PrefsDialog *dialog) sprintf (key, "%s_%s", size_prefs[type], - lang_encode[dialog->priv->language]); + lang_encode_item[dialog->priv->language]); eel_gconf_set_integer (key, gtk_spin_button_get_value (GTK_SPIN_BUTTON (spin))); } @@ -554,7 +535,7 @@ setup_size_control (PrefsDialog *dialog, int size; sprintf (key, "%s_%s", pref, - lang_encode[dialog->priv->language]); + lang_encode_item[dialog->priv->language]); size = eel_gconf_get_integer (key); if (size == 0) size = default_size; |