aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/mozilla-notifiers.cpp
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-05-27 05:13:03 +0800
committerChristian Persch <chpe@src.gnome.org>2003-05-27 05:13:03 +0800
commit3f91d766156e07b491c27bc447fb7800cc7b4cdd (patch)
treec6fd21b549d42d2d420bf0f2980a751236d7c990 /embed/mozilla/mozilla-notifiers.cpp
parenta991c432844c98ff65cca9765f5e8e3cf25d19b3 (diff)
downloadgsoc2013-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 'embed/mozilla/mozilla-notifiers.cpp')
-rw-r--r--embed/mozilla/mozilla-notifiers.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/embed/mozilla/mozilla-notifiers.cpp b/embed/mozilla/mozilla-notifiers.cpp
index a85620e0b..1f05f5abd 100644
--- a/embed/mozilla/mozilla-notifiers.cpp
+++ b/embed/mozilla/mozilla-notifiers.cpp
@@ -27,7 +27,8 @@
#include "MozRegisterComponents.h"
#include "ephy-prefs.h"
#include "ephy-embed-prefs.h"
-#include "mozilla-i18n.h"
+#include "ephy-langs.h"
+#include "ephy-debug.h"
#include <stdio.h>
#include <string.h>
@@ -348,7 +349,7 @@ void
mozilla_notifiers_init(EphyEmbedSingle *single)
{
GConfClient *client = eel_gconf_client_get_global ();
- int i;
+ guint i;
for (i = 0; conversion_table[i].gconf_key != NULL; i++)
{
@@ -386,14 +387,14 @@ mozilla_notifiers_init(EphyEmbedSingle *single)
}
/* fonts notifiers */
- for (i = 0; i < LANG_ENC_NUM; i++)
+ for (i = 0; i < n_lang_encode_items; i++)
{
- int k;
+ guint k;
char *types [] = { "serif", "sans-serif", "cursive", "fantasy", "monospace" };
char key[255];
char *info;
- for (k = 0; k < 5; k++)
+ for (k = 0; k < G_N_ELEMENTS (types); k++)
{
info = g_strconcat (types[k], ".", lang_encode_item[i], NULL);