mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-20 19:43:01 +00:00
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:
parent
9071470d63
commit
07412d61c9
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue