[gimp] app: "Reset to default values" does not properly reset generated...
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: "Reset to default values" does not properly reset generated...
- Date: Thu, 4 May 2017 03:12:17 +0000 (UTC)
commit ab56f524e4ebb244b51d41052e4c44b981b9022a
Author: Jehan <jehan girinstud io>
Date: Thu May 4 04:59:59 2017 +0200
app: "Reset to default values" does not properly reset generated...
... brush features.
My previous commit only fixed aspect ratio reset, but I realize that
much more brush options are affected by defaults of generated brushes
(size, hardness, aspect ratio, angle and spacing). Let's reset all these
after the basic property reset.
app/paint/gimppaintoptions.c | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/app/paint/gimppaintoptions.c b/app/paint/gimppaintoptions.c
index 44ebb51..1707170 100644
--- a/app/paint/gimppaintoptions.c
+++ b/app/paint/gimppaintoptions.c
@@ -809,8 +809,18 @@ gimp_paint_options_reset (GimpConfig *config)
parent_config_iface->reset (config);
if (brush)
- gimp_paint_options_set_default_brush_aspect_ratio (GIMP_PAINT_OPTIONS (config),
- brush);
+ {
+ gimp_paint_options_set_default_brush_size (GIMP_PAINT_OPTIONS (config),
+ brush);
+ gimp_paint_options_set_default_brush_hardness (GIMP_PAINT_OPTIONS (config),
+ brush);
+ gimp_paint_options_set_default_brush_aspect_ratio (GIMP_PAINT_OPTIONS (config),
+ brush);
+ gimp_paint_options_set_default_brush_angle (GIMP_PAINT_OPTIONS (config),
+ brush);
+ gimp_paint_options_set_default_brush_spacing (GIMP_PAINT_OPTIONS (config),
+ brush);
+ }
}
GimpPaintOptions *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]