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:

committed by
Sven Neumann

parent
075e22d2fb
commit
b40e638987
@ -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>
|
2008-07-04 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* plug-ins/help/gimphelpitem.h: document the purpose of the extra
|
* plug-ins/help/gimphelpitem.h: document the purpose of the extra
|
||||||
|
@ -360,10 +360,21 @@ browser_dialog_make_index_foreach (const gchar *help_id,
|
|||||||
|
|
||||||
for (i = 0; i < 5; i++)
|
for (i = 0; i < 5; i++)
|
||||||
{
|
{
|
||||||
|
gunichar c;
|
||||||
|
|
||||||
if (! indices[i])
|
if (! indices[i])
|
||||||
break;
|
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);
|
g_strfreev (indices);
|
||||||
|
Reference in New Issue
Block a user