mirror of https://github.com/GNOME/gimp.git
app: GimpBrushEditor: fix display of spacing for normal brushes
it was doing *all* the UI settings only for generated brushes.
This commit is contained in:
parent
84b27e96b9
commit
b941986bbb
|
@ -255,17 +255,21 @@ gimp_brush_editor_set_data (GimpDataEditor *editor,
|
||||||
|
|
||||||
gimp_view_set_viewable (GIMP_VIEW (editor->view), GIMP_VIEWABLE (data));
|
gimp_view_set_viewable (GIMP_VIEW (editor->view), GIMP_VIEWABLE (data));
|
||||||
|
|
||||||
if (editor->data && GIMP_IS_BRUSH_GENERATED (editor->data))
|
if (editor->data)
|
||||||
{
|
{
|
||||||
GimpBrushGenerated *brush = GIMP_BRUSH_GENERATED (editor->data);
|
spacing = gimp_brush_get_spacing (GIMP_BRUSH (editor->data));
|
||||||
|
|
||||||
shape = gimp_brush_generated_get_shape (brush);
|
if (GIMP_IS_BRUSH_GENERATED (editor->data))
|
||||||
radius = gimp_brush_generated_get_radius (brush);
|
{
|
||||||
spikes = gimp_brush_generated_get_spikes (brush);
|
GimpBrushGenerated *brush = GIMP_BRUSH_GENERATED (editor->data);
|
||||||
hardness = gimp_brush_generated_get_hardness (brush);
|
|
||||||
ratio = gimp_brush_generated_get_aspect_ratio (brush);
|
shape = gimp_brush_generated_get_shape (brush);
|
||||||
angle = gimp_brush_generated_get_angle (brush);
|
radius = gimp_brush_generated_get_radius (brush);
|
||||||
spacing = gimp_brush_get_spacing (GIMP_BRUSH (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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gtk_widget_set_sensitive (brush_editor->options_box,
|
gtk_widget_set_sensitive (brush_editor->options_box,
|
||||||
|
@ -273,6 +277,7 @@ gimp_brush_editor_set_data (GimpDataEditor *editor,
|
||||||
|
|
||||||
gimp_int_radio_group_set_active (GTK_RADIO_BUTTON (brush_editor->shape_group),
|
gimp_int_radio_group_set_active (GTK_RADIO_BUTTON (brush_editor->shape_group),
|
||||||
shape);
|
shape);
|
||||||
|
|
||||||
gtk_adjustment_set_value (brush_editor->radius_data, radius);
|
gtk_adjustment_set_value (brush_editor->radius_data, radius);
|
||||||
gtk_adjustment_set_value (brush_editor->spikes_data, spikes);
|
gtk_adjustment_set_value (brush_editor->spikes_data, spikes);
|
||||||
gtk_adjustment_set_value (brush_editor->hardness_data, hardness);
|
gtk_adjustment_set_value (brush_editor->hardness_data, hardness);
|
||||||
|
|
Loading…
Reference in New Issue