rewritten array handling to make the IRIX MIPSpro compiler happy (bug

2007-10-05  Sven Neumann  <sven@gimp.org>

	* app/plug-in/plug-in-menu-path.c (plug_in_menu_path_map):
	rewritten array handling to make the IRIX MIPSpro compiler happy
	(bug #483619).

svn path=/trunk/; revision=23730
This commit is contained in:
Sven Neumann 2007-10-05 08:29:47 +00:00 committed by Sven Neumann
parent 169c7dbc46
commit cee862f744
2 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,9 @@
2007-10-05 Sven Neumann <sven@gimp.org>
* app/plug-in/plug-in-menu-path.c (plug_in_menu_path_map):
rewritten array handling to make the IRIX MIPSpro compiler happy
(bug #483619).
2007-10-05 Sven Neumann <sven@gimp.org>
* libgimpconfig/gimpcolorconfig.[ch]: added settings for marking

View File

@ -42,22 +42,21 @@ static const MenuPathMapping menu_path_mappings[] =
{
#ifndef ENABLE_TOOLBOX_MENU
{ "<Toolbox>/Xtns", "<Image>/Xtns" },
{ "<Toolbox>/Help", "<Image>/Help" }
{ "<Toolbox>/Help", "<Image>/Help" },
#endif /* ENABLE_TOOLBOX_MENU */
{ NULL, NULL }
};
gchar *
plug_in_menu_path_map (const gchar *menu_path)
{
gint i;
const MenuPathMapping *mapping;
g_return_val_if_fail (menu_path != NULL, NULL);
for (i = 0; i < G_N_ELEMENTS (menu_path_mappings); i++)
for (mapping = menu_path_mappings; mapping->orig_path; mapping++)
{
const MenuPathMapping *mapping = &menu_path_mappings[i];
if (g_str_has_prefix (menu_path, mapping->orig_path))
{
gint orig_len = strlen (mapping->orig_path);