register the tool with GIMP_PAINT_OPTIONS_CONTEXT_MASK and

2007-03-17  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpvectortool.c (gimp_vector_tool_register):
	register the tool with GIMP_PAINT_OPTIONS_CONTEXT_MASK and
	GIMP_CONTEXT_GRADIENT_MASK so its tool options are suited
	as parameter object for stroking (the stroke button in the
	tool options was using default values before).


svn path=/trunk/; revision=22135
This commit is contained in:
Michael Natterer 2007-03-17 15:24:17 +00:00 committed by Michael Natterer
parent cefff5f07f
commit 68b4585959
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2007-03-17 Michael Natterer <mitch@gimp.org>
* app/tools/gimpvectortool.c (gimp_vector_tool_register):
register the tool with GIMP_PAINT_OPTIONS_CONTEXT_MASK and
GIMP_CONTEXT_GRADIENT_MASK so its tool options are suited
as parameter object for stroking (the stroke button in the
tool options was using default values before).
2007-03-16 Michael Natterer <mitch@gimp.org>
* app/plug-in/gimppluginprocframe.c

View File

@ -39,6 +39,8 @@
#include "core/gimptoolinfo.h"
#include "core/gimpundostack.h"
#include "paint/gimppaintoptions.h" /* GIMP_PAINT_OPTIONS_CONTEXT_MASK */
#include "vectors/gimpanchor.h"
#include "vectors/gimpvectors.h"
#include "vectors/gimpbezierstroke.h"
@ -152,7 +154,8 @@ gimp_vector_tool_register (GimpToolRegisterCallback callback,
(* callback) (GIMP_TYPE_VECTOR_TOOL,
GIMP_TYPE_VECTOR_OPTIONS,
gimp_vector_options_gui,
0,
GIMP_PAINT_OPTIONS_CONTEXT_MASK |
GIMP_CONTEXT_GRADIENT_MASK, /* for stroking */
"gimp-vector-tool",
_("Paths"),
_("Paths Tool: Create and edit paths"),