Commit 6a65e762 authored by Ell's avatar Ell

app: fix rectangle-select tool rounded-corners option

In GimpToolRectangle, fix the type of the cornder_radius field, so
that non-integer radii are properly displayed.

In GimpRectangleSelectOptions and GimpToolRectangle, increase the
maximal corner radius.

(cherry picked from commit a4726960)
parent dbe80835
......@@ -222,7 +222,7 @@ struct _GimpToolRectanglePrivate
/* Whether to draw round corners */
gboolean round_corners;
gboolean corner_radius;
gdouble corner_radius;
/* The title for the statusbar coords */
gchar *status_title;
......@@ -556,7 +556,7 @@ gimp_tool_rectangle_class_init (GimpToolRectangleClass *klass)
g_object_class_install_property (object_class, PROP_CORNER_RADIUS,
g_param_spec_double ("corner-radius",
NULL, NULL,
0.0, 1000.0, 5.0,
0.0, 10000.0, 10.0,
GIMP_PARAM_READWRITE |
G_PARAM_CONSTRUCT));
......
......@@ -28,6 +28,7 @@
#include "core/gimptoolinfo.h"
#include "widgets/gimppropwidgets.h"
#include "widgets/gimpspinscale.h"
#include "gimprectangleoptions.h"
#include "gimprectangleselectoptions.h"
......@@ -99,7 +100,7 @@ gimp_rectangle_select_options_class_init (GimpRectangleSelectOptionsClass *klass
"corner-radius",
_("Radius"),
_("Radius of rounding in pixels"),
0.0, 100.0, 5.0,
0.0, 10000.0, 10.0,
GIMP_PARAM_STATIC_STRINGS);
gimp_rectangle_options_install_properties (object_class);
......@@ -173,6 +174,9 @@ gimp_rectangle_select_options_gui (GimpToolOptions *tool_options)
scale = gimp_prop_spin_scale_new (config, "corner-radius", NULL,
1.0, 10.0, 1);
gimp_spin_scale_set_scale_limits (GIMP_SPIN_SCALE (scale),
0.0, 1000.0);
gimp_spin_scale_set_gamma (GIMP_SPIN_SCALE (scale), 1.7);
frame = gimp_prop_expanding_frame_new (config, "round-corners", NULL,
scale, NULL);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment