improved order of index items with alphabetic counters.

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.


svn path=/trunk/; revision=26057
This commit is contained in:
Sven Neumann
2008-07-04 17:59:56 +00:00
committed by Sven Neumann
parent 075e22d2fb
commit b40e638987
2 changed files with 17 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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.
2008-07-04 Sven Neumann <sven@gimp.org>
* plug-ins/help/gimphelpitem.h: document the purpose of the extra

View File

@ -360,10 +360,21 @@ browser_dialog_make_index_foreach (const gchar *help_id,
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);