diff options
author | Not Zed <NotZed@Ximian.com> | 2004-04-30 14:20:24 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-04-30 14:20:24 +0800 |
commit | be08a4a3eceeb5d31d1aa7cab70a755f1fe9d688 (patch) | |
tree | 161b27f6e99af5d25c17da02b235c1a758fec8fc /shell/e-shell-settings-dialog.c | |
parent | 2828781d0d377824000442624971ae15855b9f8f (diff) | |
download | gsoc2013-evolution-be08a4a3eceeb5d31d1aa7cab70a755f1fe9d688.tar.gz gsoc2013-evolution-be08a4a3eceeb5d31d1aa7cab70a755f1fe9d688.tar.zst gsoc2013-evolution-be08a4a3eceeb5d31d1aa7cab70a755f1fe9d688.zip |
do the same as below.
2004-04-30 Not Zed <NotZed@Ximian.com>
* e-component-registry.c (query_components): do the same as below.
* e-shell-settings-dialog.c (load_pages): use
gnome_i18n_get_language_list instead of e_get_language_list(), and
use the right locale option. Fixes #53398.
svn path=/trunk/; revision=25700
Diffstat (limited to 'shell/e-shell-settings-dialog.c')
-rw-r--r-- | shell/e-shell-settings-dialog.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/shell/e-shell-settings-dialog.c b/shell/e-shell-settings-dialog.c index dbfb2c502a..a6ce5cfdb5 100644 --- a/shell/e-shell-settings-dialog.c +++ b/shell/e-shell-settings-dialog.c @@ -156,6 +156,7 @@ load_pages (EShellSettingsDialog *dialog) EShellSettingsDialogPrivate *priv; Bonobo_ServerInfoList *control_list; CORBA_Environment ev; + const GList *l; GSList *language_list; GList *page_list; GList *p; @@ -174,7 +175,10 @@ load_pages (EShellSettingsDialog *dialog) CORBA_exception_free (&ev); - language_list = e_get_language_list (); + /* 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); page_list = NULL; for (i = 0; i < control_list->_length; i ++) { @@ -235,6 +239,7 @@ load_pages (EShellSettingsDialog *dialog) CORBA_exception_free (&ev); } + g_slist_free(language_list); page_list = sort_page_list (page_list); for (p = page_list, i = 0; p != NULL; p = p->next, i++) { @@ -263,7 +268,6 @@ load_pages (EShellSettingsDialog *dialog) } g_list_free (page_list); - e_free_language_list (language_list); CORBA_free (control_list); } |