Fixed oversight that accidentially reset the number of spikes to 2.

2004-08-01  Simon Budig  <simon@gimp.org>

	* app/widgets/gimpbrusheditor.c: Fixed oversight that accidentially
	reset the number of spikes to 2.
This commit is contained in:
Simon Budig 2004-08-01 18:09:41 +00:00 committed by Simon Budig
parent 1eb3009f1a
commit b05f9f4b60
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2004-08-01 Simon Budig <simon@gimp.org>
* app/widgets/gimpbrusheditor.c: Fixed oversight that accidentially
reset the number of spikes to 2.
2004-08-01 Simon Budig <simon@gimp.org>
* app/core/gimpbrushgenerated.[ch]: Added optional spikes for

View File

@ -217,6 +217,7 @@ gimp_brush_editor_set_data (GimpDataEditor *editor,
GimpBrushEditor *brush_editor;
GimpBrushGeneratedShape shape = GIMP_BRUSH_GENERATED_CIRCLE;
gdouble radius = 0.0;
gint spikes = 2;
gdouble hardness = 0.0;
gdouble ratio = 0.0;
gdouble angle = 0.0;
@ -244,6 +245,7 @@ gimp_brush_editor_set_data (GimpDataEditor *editor,
shape = gimp_brush_generated_get_shape (brush);
radius = gimp_brush_generated_get_radius (brush);
spikes = gimp_brush_generated_get_spikes (brush);
hardness = gimp_brush_generated_get_hardness (brush);
ratio = gimp_brush_generated_get_aspect_ratio (brush);
angle = gimp_brush_generated_get_angle (brush);
@ -255,6 +257,7 @@ gimp_brush_editor_set_data (GimpDataEditor *editor,
gimp_int_radio_group_set_active (GTK_RADIO_BUTTON (brush_editor->shape_group),
shape);
gtk_adjustment_set_value (brush_editor->radius_data, radius);
gtk_adjustment_set_value (brush_editor->spikes_data, spikes);
gtk_adjustment_set_value (brush_editor->hardness_data, hardness);
gtk_adjustment_set_value (brush_editor->aspect_ratio_data, ratio);
gtk_adjustment_set_value (brush_editor->angle_data, angle);