aboutsummaryrefslogtreecommitdiff
path: root/x11/gdm/files/patch-gui_simple-greeter_gdm-languages.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11/gdm/files/patch-gui_simple-greeter_gdm-languages.c')
-rw-r--r--x11/gdm/files/patch-gui_simple-greeter_gdm-languages.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/x11/gdm/files/patch-gui_simple-greeter_gdm-languages.c b/x11/gdm/files/patch-gui_simple-greeter_gdm-languages.c
index 9116dc917a64..675925aa926b 100644
--- a/x11/gdm/files/patch-gui_simple-greeter_gdm-languages.c
+++ b/x11/gdm/files/patch-gui_simple-greeter_gdm-languages.c
@@ -1,5 +1,5 @@
---- gui/simple-greeter/gdm-languages.c.orig 2008-11-22 17:16:42.000000000 -0500
-+++ gui/simple-greeter/gdm-languages.c 2008-11-22 17:29:05.000000000 -0500
+--- gui/simple-greeter/gdm-languages.c.orig 2009-07-20 03:09:09.000000000 +0200
++++ gui/simple-greeter/gdm-languages.c 2009-07-20 10:02:41.000000000 +0200
@@ -168,13 +168,13 @@ gdm_parse_language_name (const char *nam
*codesetp = NULL;
}
@@ -16,7 +16,16 @@
}
if (modifierp != NULL) {
-@@ -353,7 +353,7 @@ add_locale (const char *language_name)
+@@ -314,7 +314,7 @@ language_name_has_translations (const ch
+ const char *name;
+ gboolean has_translations;
+
+- path = g_build_filename (GNOMELOCALEDIR, language_name, "LC_MESSAGES", NULL);
++ path = g_build_filename ("/usr/share/locale", language_name, "LC_MESSAGES", NULL);
+
+ has_translations = FALSE;
+ dir = g_dir_open (path, 0, NULL);
+@@ -352,7 +352,7 @@ add_locale (const char *language_name)
if (language_name_is_utf8 (language_name)) {
name = g_strdup (language_name);
} else {
@@ -25,20 +34,11 @@
if (!language_name_is_utf8 (name)) {
g_free (name);
-@@ -482,7 +482,7 @@ select_dirs (const struct dirent *dirent
- struct stat st;
- char *path;
-
-- path = g_build_filename (GNOMELOCALEDIR, dirent->d_name, NULL);
-+ path = g_build_filename ("/usr/share/locale", dirent->d_name, NULL);
- if (g_stat (path, &st) == 0) {
- mode = st.st_mode;
- }
-@@ -502,7 +502,7 @@ collect_locales_from_directory (void)
+@@ -501,7 +501,7 @@ collect_locales_from_directory (void)
int ndirents;
int cnt;
-- ndirents = scandir (GNOMELOCALEDIR, &dirents, select_dirs, alphasort);
+- ndirents = scandir (LIBLOCALEDIR, &dirents, select_dirs, alphasort);
+ ndirents = scandir ("/usr/share/locale", &dirents, select_dirs, alphasort);
for (cnt = 0; cnt < ndirents; ++cnt) {