mirror of https://github.com/GNOME/gimp.git
fix find_next_guide to return 0 on the last guide as documented, instead
2003-03-06 Manish Sing <yosh@gimp.org> * tools/pdbgen/pdb/guides.pdb: fix find_next_guide to return 0 on the last guide as documented, instead of failing. * app/pdb/guides_cmds.c: regenerated
This commit is contained in:
parent
06aeae86e6
commit
5edae3e6f6
|
@ -1,3 +1,10 @@
|
||||||
|
2003-03-06 Manish Sing <yosh@gimp.org>
|
||||||
|
|
||||||
|
* tools/pdbgen/pdb/guides.pdb: fix find_next_guide to return 0 on
|
||||||
|
the last guide as documented, instead of failing.
|
||||||
|
|
||||||
|
* app/pdb/guides_cmds.c: regenerated
|
||||||
|
|
||||||
2003-03-06 Michael Natterer <mitch@gimp.org>
|
2003-03-06 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
* themes/Default/images/stock-delete-16.png
|
* themes/Default/images/stock-delete-16.png
|
||||||
|
|
|
@ -298,36 +298,39 @@ image_find_next_guide_invoker (Gimp *gimp,
|
||||||
|
|
||||||
if (success)
|
if (success)
|
||||||
{
|
{
|
||||||
success = (gimage->guides == NULL);
|
if (gimage->guides != NULL)
|
||||||
guide_found = FALSE;
|
|
||||||
|
|
||||||
for (guides = gimage->guides; guides; guides = g_list_next (guides))
|
|
||||||
{
|
{
|
||||||
GimpGuide *g = (GimpGuide *) guides->data;
|
success = FALSE;
|
||||||
|
guide_found = FALSE;
|
||||||
|
|
||||||
if (g->position < 0)
|
for (guides = gimage->guides; guides; guides = g_list_next (guides))
|
||||||
continue;
|
|
||||||
|
|
||||||
if (guide == 0) /* init - Return first guide ID in list */
|
|
||||||
{
|
{
|
||||||
next_guide = g->guide_ID;
|
GimpGuide *g = (GimpGuide *) guides->data;
|
||||||
|
|
||||||
success = TRUE;
|
if (g->position < 0)
|
||||||
break;
|
continue;
|
||||||
|
|
||||||
|
if (guide == 0) /* init - Return first guide ID in list */
|
||||||
|
{
|
||||||
|
next_guide = g->guide_ID;
|
||||||
|
|
||||||
|
guide_found = TRUE;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (! guide_found)
|
||||||
|
{
|
||||||
|
if (g->guide_ID == guide)
|
||||||
|
guide_found = TRUE;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
next_guide = g->guide_ID;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! guide_found)
|
if (guide_found)
|
||||||
{
|
success = TRUE;
|
||||||
if (g->guide_ID == guide)
|
|
||||||
guide_found = TRUE;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
next_guide = g->guide_ID;
|
|
||||||
|
|
||||||
success = TRUE;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -143,36 +143,39 @@ HELP
|
||||||
vars => [ 'GList *guides', 'gboolean guide_found' ],
|
vars => [ 'GList *guides', 'gboolean guide_found' ],
|
||||||
code => <<'CODE'
|
code => <<'CODE'
|
||||||
{
|
{
|
||||||
success = (gimage->guides == NULL);
|
if (gimage->guides != NULL)
|
||||||
guide_found = FALSE;
|
|
||||||
|
|
||||||
for (guides = gimage->guides; guides; guides = g_list_next (guides))
|
|
||||||
{
|
{
|
||||||
GimpGuide *g = (GimpGuide *) guides->data;
|
success = FALSE;
|
||||||
|
guide_found = FALSE;
|
||||||
|
|
||||||
if (g->position < 0)
|
for (guides = gimage->guides; guides; guides = g_list_next (guides))
|
||||||
continue;
|
|
||||||
|
|
||||||
if (guide == 0) /* init - Return first guide ID in list */
|
|
||||||
{
|
{
|
||||||
next_guide = g->guide_ID;
|
GimpGuide *g = (GimpGuide *) guides->data;
|
||||||
|
|
||||||
success = TRUE;
|
if (g->position < 0)
|
||||||
break;
|
continue;
|
||||||
|
|
||||||
|
if (guide == 0) /* init - Return first guide ID in list */
|
||||||
|
{
|
||||||
|
next_guide = g->guide_ID;
|
||||||
|
|
||||||
|
guide_found = TRUE;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (! guide_found)
|
||||||
|
{
|
||||||
|
if (g->guide_ID == guide)
|
||||||
|
guide_found = TRUE;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
next_guide = g->guide_ID;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! guide_found)
|
if (guide_found)
|
||||||
{
|
success = TRUE;
|
||||||
if (g->guide_ID == guide)
|
|
||||||
guide_found = TRUE;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
next_guide = g->guide_ID;
|
|
||||||
|
|
||||||
success = TRUE;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
CODE
|
CODE
|
||||||
|
|
Loading…
Reference in New Issue