allow to change the spacing of brushes the user doesn't have write access

2006-01-05  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/brush.pdb (gimp-brush-set-spacing): allow to
	change the spacing of brushes the user doesn't have write access
	to. The user interface allows to do that as well.

	* app/pdb/brush_cmds.c: regenerated.
This commit is contained in:
Sven Neumann 2006-01-05 08:37:17 +00:00 committed by Sven Neumann
parent 999f58b86f
commit 656e782c63
3 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,11 @@
2006-01-05 Sven Neumann <sven@gimp.org>
* tools/pdbgen/pdb/brush.pdb (gimp-brush-set-spacing): allow to
change the spacing of brushes the user doesn't have write access
to. The user interface allows to do that as well.
* app/pdb/brush_cmds.c: regenerated.
2006-01-04 Michael Natterer <mitch@gimp.org> 2006-01-04 Michael Natterer <mitch@gimp.org>
* tools/pdbgen/pdb/context.pdb: fixed docs for gimp-context-push/pop. * tools/pdbgen/pdb/context.pdb: fixed docs for gimp-context-push/pop.

View file

@ -826,7 +826,7 @@ brush_set_spacing_invoker (Gimp *gimp,
brush = (GimpBrush *) brush = (GimpBrush *)
gimp_container_get_child_by_name (gimp->brush_factory->container, name); gimp_container_get_child_by_name (gimp->brush_factory->container, name);
if (brush && GIMP_DATA (brush)->writable) if (brush)
gimp_brush_set_spacing (brush, spacing); gimp_brush_set_spacing (brush, spacing);
else else
success = FALSE; success = FALSE;

View file

@ -627,7 +627,7 @@ HELP
brush = (GimpBrush *) brush = (GimpBrush *)
gimp_container_get_child_by_name (gimp->brush_factory->container, name); gimp_container_get_child_by_name (gimp->brush_factory->container, name);
if (brush && GIMP_DATA (brush)->writable) if (brush)
gimp_brush_set_spacing (brush, spacing); gimp_brush_set_spacing (brush, spacing);
else else
success = FALSE; success = FALSE;