mirror of https://github.com/GNOME/gimp.git
renamed property "miter" to "miter-limit" and added a description to be
2005-05-19 Sven Neumann <sven@gimp.org> * app/core/gimpstrokeoptions.[ch]: renamed property "miter" to "miter-limit" and added a description to be used as a tooltip in the stroke editor. * app/core/gimpdrawable-stroke.c * app/widgets/gimpstrokeeditor.c: changed accordingly.
This commit is contained in:
parent
7902e11bee
commit
9b29707961
|
@ -1,3 +1,12 @@
|
|||
2005-05-19 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/core/gimpstrokeoptions.[ch]: renamed property "miter" to
|
||||
"miter-limit" and added a description to be used as a tooltip in
|
||||
the stroke editor.
|
||||
|
||||
* app/core/gimpdrawable-stroke.c
|
||||
* app/widgets/gimpstrokeeditor.c: changed accordingly.
|
||||
|
||||
2005-05-19 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/core/gimpstrokeoptions.[ch]
|
||||
|
|
|
@ -253,7 +253,7 @@ gimp_drawable_stroke_scan_convert (GimpDrawable *drawable,
|
|||
gimp_scan_convert_stroke (scan_convert, width,
|
||||
options->join_style,
|
||||
options->cap_style,
|
||||
options->miter,
|
||||
options->miter_limit,
|
||||
options->dash_offset,
|
||||
options->dash_info);
|
||||
|
||||
|
|
|
@ -32,6 +32,8 @@
|
|||
#include "gimpmarshal.h"
|
||||
#include "gimpstrokeoptions.h"
|
||||
|
||||
#include "gimp-intl.h"
|
||||
|
||||
|
||||
enum
|
||||
{
|
||||
|
@ -41,7 +43,7 @@ enum
|
|||
PROP_UNIT,
|
||||
PROP_CAP_STYLE,
|
||||
PROP_JOIN_STYLE,
|
||||
PROP_MITER,
|
||||
PROP_MITER_LIMIT,
|
||||
PROP_ANTIALIAS,
|
||||
PROP_DASH_UNIT,
|
||||
PROP_DASH_OFFSET,
|
||||
|
@ -144,8 +146,12 @@ gimp_stroke_options_class_init (GimpStrokeOptionsClass *klass)
|
|||
"join-style", NULL,
|
||||
GIMP_TYPE_JOIN_STYLE, GIMP_JOIN_MITER,
|
||||
0);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_MITER,
|
||||
"miter", NULL,
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_MITER_LIMIT,
|
||||
"miter-limit",
|
||||
_("Convert a mitered join to a bevelled "
|
||||
"join if the miter would extend to a "
|
||||
"distance of more than miter-limit * "
|
||||
"line-width from the actual join point."),
|
||||
0.0, 100.0, 10.0,
|
||||
0);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_ANTIALIAS,
|
||||
|
@ -192,8 +198,8 @@ gimp_stroke_options_set_property (GObject *object,
|
|||
case PROP_JOIN_STYLE:
|
||||
options->join_style = g_value_get_enum (value);
|
||||
break;
|
||||
case PROP_MITER:
|
||||
options->miter = g_value_get_double (value);
|
||||
case PROP_MITER_LIMIT:
|
||||
options->miter_limit = g_value_get_double (value);
|
||||
break;
|
||||
case PROP_ANTIALIAS:
|
||||
options->antialias = g_value_get_boolean (value);
|
||||
|
@ -238,8 +244,8 @@ gimp_stroke_options_get_property (GObject *object,
|
|||
case PROP_JOIN_STYLE:
|
||||
g_value_set_enum (value, options->join_style);
|
||||
break;
|
||||
case PROP_MITER:
|
||||
g_value_set_double (value, options->miter);
|
||||
case PROP_MITER_LIMIT:
|
||||
g_value_set_double (value, options->miter_limit);
|
||||
break;
|
||||
case PROP_ANTIALIAS:
|
||||
g_value_set_boolean (value, options->antialias);
|
||||
|
|
|
@ -48,7 +48,7 @@ struct _GimpStrokeOptions
|
|||
GimpCapStyle cap_style;
|
||||
GimpJoinStyle join_style;
|
||||
|
||||
gdouble miter;
|
||||
gdouble miter_limit;
|
||||
|
||||
gboolean antialias;
|
||||
|
||||
|
|
|
@ -232,7 +232,7 @@ gimp_stroke_editor_constructor (GType type,
|
|||
_("_Join style:"), 0.0, 0.5,
|
||||
box, 2, TRUE);
|
||||
|
||||
gimp_prop_scale_entry_new (G_OBJECT (editor->options), "miter",
|
||||
gimp_prop_scale_entry_new (G_OBJECT (editor->options), "miter-limit",
|
||||
GTK_TABLE (table), 0, row++,
|
||||
_("_Miter limit:"),
|
||||
1.0, 1.0, 1,
|
||||
|
@ -284,7 +284,7 @@ gimp_stroke_editor_constructor (GType type,
|
|||
gimp_int_combo_box_set_active (GIMP_INT_COMBO_BOX (box), GIMP_DASH_CUSTOM);
|
||||
gimp_table_attach_aligned (GTK_TABLE (table), 0, row++,
|
||||
_("Dash preset:"), 0.0, 0.5,
|
||||
box, 2, TRUE);
|
||||
box, 2, FALSE);
|
||||
|
||||
g_signal_connect (box, "changed",
|
||||
G_CALLBACK (gimp_stroke_editor_dash_preset),
|
||||
|
@ -296,7 +296,7 @@ gimp_stroke_editor_constructor (GType type,
|
|||
|
||||
button = gimp_prop_check_button_new (G_OBJECT (editor->options), "antialias",
|
||||
_("_Antialiasing"));
|
||||
gtk_table_attach (GTK_TABLE (table), button, 0, 2, row, row + 1,
|
||||
gtk_table_attach (GTK_TABLE (table), button, 0, 3, row, row + 1,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
|
||||
gtk_widget_show (button);
|
||||
row++;
|
||||
|
|
Loading…
Reference in New Issue