added GIMP_ACTION_SELECT_SET actions which set a generated brush's

2004-06-25  Michael Natterer  <mitch@gimp.org>

	* app/actions/context-actions.c: added GIMP_ACTION_SELECT_SET
	actions which set a generated brush's properties directly.

	* app/actions/context-commands.c: adjust the range of possible
	brush radius and aspect_ratio values to be actually usable.
This commit is contained in:
Michael Natterer
2004-06-25 13:50:45 +00:00
committed by Michael Natterer
parent 140d3d5c01
commit fe14fa1d33
3 changed files with 26 additions and 2 deletions

View File

@ -276,7 +276,7 @@ context_brush_radius_cmd_callback (GtkAction *action,
radius = action_select_value ((GimpActionSelectType) value,
radius,
1.0, 4096.0,
1.0, 256.0,
1.0, 10.0, FALSE);
gimp_brush_generated_set_radius (generated, radius);
}
@ -328,7 +328,7 @@ context_brush_aspect_cmd_callback (GtkAction *action,
aspect = action_select_value ((GimpActionSelectType) value,
aspect,
1.0, 1000.0,
1.0, 20.0,
1.0, 4.0, FALSE);
gimp_brush_generated_set_aspect_ratio (generated, aspect);
}