aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-settings-dialog.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2007-03-21 01:23:58 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2007-03-21 01:23:58 +0800
commitcba3097cad7443810117bded371a2e3088a33d12 (patch)
treeb4bf9ba6b6c9b5433c8ac2614694d7bf76d87ff0 /shell/e-shell-settings-dialog.c
parent2313e47dab3e8151743138892277b08cf78034cc (diff)
downloadgsoc2013-evolution-cba3097cad7443810117bded371a2e3088a33d12.tar.gz
gsoc2013-evolution-cba3097cad7443810117bded371a2e3088a33d12.tar.zst
gsoc2013-evolution-cba3097cad7443810117bded371a2e3088a33d12.zip
** Fixes bug #419524
2007-03-20 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #419524 * Include <glib/gi18n.h> instead of <libgnome/gnome-i18n.h>. * e-util/e-xml-utils.c (e_xml_get_child_by_name_by_lang_list): * mail/em-migrate.c (emm_setup_initial): * shell/e-component-registry.c (query_components): * shell/e-shell-settings-dialog.c (load_pages): * shell/e-shell-window-commands.c (command_quick_reference): * tools/killev.c (main): Use g_get_language_names() instead of gnome_i18n_get_language_list(). * e-util/e-util.c: Remove e_gettext(). * e-util/Makefile.am: Remove e-i18n.h. svn path=/trunk/; revision=33319
Diffstat (limited to 'shell/e-shell-settings-dialog.c')
-rw-r--r--shell/e-shell-settings-dialog.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/shell/e-shell-settings-dialog.c b/shell/e-shell-settings-dialog.c
index 8d72da9291..67dc214b41 100644
--- a/shell/e-shell-settings-dialog.c
+++ b/shell/e-shell-settings-dialog.c
@@ -148,9 +148,9 @@ load_pages (EShellSettingsDialog *dialog)
{
EShellSettingsDialogPrivate *priv;
Bonobo_ServerInfoList *control_list;
+ const gchar * const *language_names;
CORBA_Environment ev;
- const GList *l;
- GSList *language_list;
+ GSList *languages = NULL;
GList *page_list;
GList *p;
int i, j;
@@ -168,10 +168,9 @@ load_pages (EShellSettingsDialog *dialog)
CORBA_exception_free (&ev);
- /* Great, one uses GList the other GSList (!) */
- l = gnome_i18n_get_language_list("LC_MESSAGES");
- for (language_list=NULL;l;l=l->next)
- language_list = g_slist_append(language_list, l->data);
+ language_names = g_get_language_names ();
+ while (*language_names != NULL)
+ languages = g_list_append (languages, *language_names++);
page_list = NULL;
for (i = 0; i < control_list->_length; i ++) {
@@ -189,8 +188,8 @@ load_pages (EShellSettingsDialog *dialog)
info = & control_list->_buffer[i];
- title = bonobo_server_info_prop_lookup (info, "evolution2:config_item:title", language_list);
- description = bonobo_server_info_prop_lookup (info, "evolution2:config_item:description", language_list);
+ title = bonobo_server_info_prop_lookup (info, "evolution2:config_item:title", languages);
+ description = bonobo_server_info_prop_lookup (info, "evolution2:config_item:description", languages);
icon_path = bonobo_server_info_prop_lookup (info, "evolution2:config_item:icon_name", NULL);
type = bonobo_server_info_prop_find (info, "evolution2:config_item:type");
priority_string = bonobo_server_info_prop_lookup (info, "evolution2:config_item:priority", NULL);
@@ -232,7 +231,7 @@ load_pages (EShellSettingsDialog *dialog)
CORBA_exception_free (&ev);
}
- g_slist_free(language_list);
+ g_slist_free(languages);
page_list = sort_page_list (page_list);
for (p = page_list, i = 0; p != NULL; p = p->next, i++) {