gimp r26057 - in trunk: . plug-ins/help-browser
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26057 - in trunk: . plug-ins/help-browser
- Date: Fri,  4 Jul 2008 17:59:56 +0000 (UTC)
Author: neo
Date: Fri Jul  4 17:59:56 2008
New Revision: 26057
URL: http://svn.gnome.org/viewvc/gimp?rev=26057&view=rev
Log:
2008-07-04  Sven Neumann  <sven gimp org>
	* plug-ins/help-browser/dialog.c 
(browser_dialog_make_index_foreach):
	improved order of index items with alphabetic counters.
Modified:
   trunk/ChangeLog
   trunk/plug-ins/help-browser/dialog.c
Modified: trunk/plug-ins/help-browser/dialog.c
==============================================================================
--- trunk/plug-ins/help-browser/dialog.c	(original)
+++ trunk/plug-ins/help-browser/dialog.c	Fri Jul  4 17:59:56 2008
@@ -360,10 +360,21 @@
 
       for (i = 0; i < 5; i++)
         {
+          gunichar c;
+
           if (! indices[i])
             break;
 
-          item->index += atoi (indices[i]) << (8 * (5 - i));
+          c = g_utf8_get_char (indices[i]);
+
+          if (g_unichar_isdigit (c))
+            {
+              item->index += atoi (indices[i]) << (8 * (5 - i));
+            }
+          else if (g_utf8_strlen (indices[i], -1) == 1)
+            {
+              item->index += (c & 0xFF) << (8 * (5 - i));
+            }
         }
 
       g_strfreev (indices);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]