aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-settings-dialog.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-03-23 04:48:05 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-03-23 04:48:05 +0800
commitc2baedba52745c97419725d59306b02880814408 (patch)
treeaec088aad0f3843771c87d3ddab4f3b929869793 /shell/e-shell-settings-dialog.c
parentc197e1fd693a4957d81b33f8f87b7cdb476a4bc2 (diff)
downloadgsoc2013-evolution-c2baedba52745c97419725d59306b02880814408.tar.gz
gsoc2013-evolution-c2baedba52745c97419725d59306b02880814408.tar.zst
gsoc2013-evolution-c2baedba52745c97419725d59306b02880814408.zip
Removed. (load_pages): Use e_get_language_list() here instead. Also, free
* e-shell-settings-dialog.c (get_language_list): Removed. (load_pages): Use e_get_language_list() here instead. Also, free using e_free_language_list(). svn path=/trunk/; revision=16232
Diffstat (limited to 'shell/e-shell-settings-dialog.c')
-rw-r--r--shell/e-shell-settings-dialog.c27
1 files changed, 4 insertions, 23 deletions
diff --git a/shell/e-shell-settings-dialog.c b/shell/e-shell-settings-dialog.c
index aeb51e8469..33a4613c91 100644
--- a/shell/e-shell-settings-dialog.c
+++ b/shell/e-shell-settings-dialog.c
@@ -29,10 +29,11 @@
#include "e-corba-config-page.h"
+#include "e-util/e-lang-utils.h"
+
#include <gal/util/e-util.h>
#include <bonobo/bonobo-widget.h>
-
#include <liboaf/liboaf.h>
#include <string.h>
@@ -42,26 +43,6 @@
static EMultiConfigDialogClass *parent_class = NULL;
-static GSList *
-get_language_list (void)
-{
- const char *env;
- const char *p;
-
- env = g_getenv ("LANGUAGE");
- if (env == NULL) {
- env = g_getenv ("LANG");
- if (env == NULL)
- return NULL;
- }
-
- p = strchr (env, '=');
- if (p != NULL)
- return g_slist_prepend (NULL, (void *) (p + 1));
- else
- return g_slist_prepend (NULL, (void *) env);
-}
-
static void
load_pages (EShellSettingsDialog *dialog)
{
@@ -79,7 +60,7 @@ load_pages (EShellSettingsDialog *dialog)
return;
}
- language_list = get_language_list ();
+ language_list = e_get_language_list ();
for (i = 0; i < control_list->_length; i ++) {
CORBA_Object corba_object;
@@ -121,7 +102,7 @@ load_pages (EShellSettingsDialog *dialog)
CORBA_free (control_list);
- g_slist_free (language_list);
+ e_free_language_list (language_list);
CORBA_exception_free (&ev);
}