Commit 07412d61 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

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.
parent 9071470d
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.
......
......@@ -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
......
......@@ -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
......
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