gdm r6059 - in trunk: . gui/simple-greeter



Author: halfline
Date: Tue Mar 25 18:58:18 2008
New Revision: 6059
URL: http://svn.gnome.org/viewvc/gdm?rev=6059&view=rev

Log:
2008-03-25  Ray Strode  <rstrode redhat com>

	* gui/simple-greeter/gdm-langauges.c:
	(collect_locales_from_archive):
	Don't sort names read from archive, since they're just
	going to get stuffed into a hash table


Modified:
   trunk/ChangeLog
   trunk/gui/simple-greeter/gdm-languages.c

Modified: trunk/gui/simple-greeter/gdm-languages.c
==============================================================================
--- trunk/gui/simple-greeter/gdm-languages.c	(original)
+++ trunk/gui/simple-greeter/gdm-languages.c	Tue Mar 25 18:58:18 2008
@@ -321,13 +321,6 @@
         uint32_t locrec_offset;
 };
 
-static int
-nameentcmp (const void *a, const void *b)
-{
-        return strcoll (((const struct nameent *) a)->name,
-                        ((const struct nameent *) b)->name);
-}
-
 static gboolean
 language_name_is_valid (const char *language_name)
 {
@@ -412,9 +405,6 @@
                 }
         }
 
-        /* Sort the names.  */
-        qsort (names, used, sizeof (struct nameent), nameentcmp);
-
         for (cnt = 0; cnt < used; ++cnt) {
                 struct locrecent *locrec;
                 GdmLocale        *locale;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]