check for options->clone_type.

2005-04-04  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpclonetool.c (gimp_clone_tool_oper_update): check
	for options->clone_type.
This commit is contained in:
Sven Neumann 2005-04-04 21:20:13 +00:00 committed by Sven Neumann
parent 9071470d63
commit 07412d61c9
3 changed files with 21 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2005-04-04 Sven Neumann <sven@gimp.org>
* app/tools/gimpclonetool.c (gimp_clone_tool_oper_update): check
for options->clone_type.
2005-04-04 Sven Neumann <sven@gimp.org>
* app/tools/gimppainttool.[ch] export paint tool statusbar API.

View File

@ -246,11 +246,16 @@ gimp_clone_tool_oper_update (GimpTool *tool,
GdkModifierType state,
GimpDisplay *gdisp)
{
GimpToolOptions *options = tool->tool_info->tool_options;
GIMP_TOOL_CLASS (parent_class)->oper_update (tool, coords, state, gdisp);
if (! GIMP_CLONE (GIMP_PAINT_TOOL (tool)->core)->src_drawable)
gimp_paint_tool_replace_status (tool, gdisp,
_("Ctrl-Click to set a clone source."));
if (GIMP_CLONE_OPTIONS (options)->clone_type == GIMP_IMAGE_CLONE &&
GIMP_CLONE (GIMP_PAINT_TOOL (tool)->core)->src_drawable == NULL)
{
gimp_paint_tool_replace_status (tool, gdisp,
_("Ctrl-Click to set a clone source."));
}
}
static void

View File

@ -246,11 +246,16 @@ gimp_clone_tool_oper_update (GimpTool *tool,
GdkModifierType state,
GimpDisplay *gdisp)
{
GimpToolOptions *options = tool->tool_info->tool_options;
GIMP_TOOL_CLASS (parent_class)->oper_update (tool, coords, state, gdisp);
if (! GIMP_CLONE (GIMP_PAINT_TOOL (tool)->core)->src_drawable)
gimp_paint_tool_replace_status (tool, gdisp,
_("Ctrl-Click to set a clone source."));
if (GIMP_CLONE_OPTIONS (options)->clone_type == GIMP_IMAGE_CLONE &&
GIMP_CLONE (GIMP_PAINT_TOOL (tool)->core)->src_drawable == NULL)
{
gimp_paint_tool_replace_status (tool, gdisp,
_("Ctrl-Click to set a clone source."));
}
}
static void