aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-langs.h
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-06-12 07:14:38 +0800
committerChristian Persch <chpe@src.gnome.org>2003-06-12 07:14:38 +0800
commit5c496db6c7ccd1c451cb49b4529724630a64895f (patch)
treeff0faf4b396dbae4646c4ef4cbdcb82d89417b90 /lib/ephy-langs.h
parentd25a4baf3c20a184803537334e656a5c4538211f (diff)
downloadgsoc2013-epiphany-5c496db6c7ccd1c451cb49b4529724630a64895f.tar.gz
gsoc2013-epiphany-5c496db6c7ccd1c451cb49b4529724630a64895f.tar.zst
gsoc2013-epiphany-5c496db6c7ccd1c451cb49b4529724630a64895f.zip
Use functions instead of declaring static vars in .h file, (hopefully)
2003-06-12 Christian Persch <chpe@cvs.gnome.org> * lib/ephy-langs.h: * lib/ephy-langs.c: (ephy_langs_get_n_font_languages), (ephy_langs_get_font_languages): Use functions instead of declaring static vars in .h file, (hopefully) fixing # 114906 .
Diffstat (limited to 'lib/ephy-langs.h')
-rw-r--r--lib/ephy-langs.h24
1 files changed, 4 insertions, 20 deletions
diff --git a/lib/ephy-langs.h b/lib/ephy-langs.h
index dfe5ec2ee..30cb3a6d2 100644
--- a/lib/ephy-langs.h
+++ b/lib/ephy-langs.h
@@ -24,7 +24,6 @@
#endif
#include <glib.h>
-#include <bonobo/bonobo-i18n.h>
G_BEGIN_DECLS
@@ -71,29 +70,14 @@ typedef struct
gchar* code;
} FontsLanguageInfo;
-static const FontsLanguageInfo fonts_language[] =
-{
- { N_("Arabic"), "ar" },
- { N_("Baltic"), "x-baltic" },
- { N_("Central European"), "x-central-euro" },
- { N_("Cyrillic"), "x-cyrillic" },
- { N_("Greek"), "el" },
- { N_("Hebrew"), "he" },
- { N_("Japanese"), "ja" },
- { N_("Korean"), "ko" },
- { N_("Simplified Chinese"), "zh-CN" },
- { N_("Thai"), "th" },
- { N_("Traditional Chinese"), "zh-TW" },
- { N_("Turkish"), "tr" },
- { N_("Unicode"), "x-unicode" },
- { N_("Western"), "x-western" },
-};
-static const guint n_fonts_languages = G_N_ELEMENTS (fonts_language);
-
void language_group_info_free (LanguageGroupInfo *info);
void encoding_info_free (EncodingInfo *info);
+guint ephy_langs_get_n_font_languages (void);
+
+const FontsLanguageInfo * ephy_langs_get_font_languages (void);
+
G_END_DECLS
#endif