Applied (modified and enhanced) patch from Chris Moller which allows tools
2006-08-05 Michael Natterer <mitch@gimp.org> Applied (modified and enhanced) patch from Chris Moller which allows tools to distinguish similar colors not only by composite, but also by R, G, B, H, S and V. Fixes bug #348291. * app/core/core-enums.[ch]: added new enum GimpSelectCriterion which can be one of { COMPOSITE, R, G, B, H, S, V }. * app/core/gimpimage-contiguous-region.[ch]: added select_criterion params and create the region based on difference by the selected criterion. * app/core/gimpchannel-select.[ch] * app/core/gimpdrawable-bucket-fill.[ch]: take criterion params and pass them through to the contiguous region functions. * app/tools/gimpbucketfilloptions.[ch] * app/tools/gimpselectionoptions.[ch]: added criterion properties and GUI to select it. * app/tools/gimpbucketfilltool.c * app/tools/gimpbycolorselecttool.c * app/tools/gimpfuzzyselecttool.c: pass the selected criterion to the resp. core functions. * app/widgets/gimpdrawabletreeview.c * app/widgets/gimpselectioneditor.c * app/display/gimpdisplayshell-dnd.c * tools/pdbgen/pdb/edit.pdb * tools/pdbgen/pdb/selection_tools.pdb: changed accordingly (simply pass GIMP_SELECT_CRITERION_COMPOSITE in most cases). * app/pdb/edit_cmds.c * app/pdb/selection_tools_cmds.c: regenerated.
This commit is contained in:
committed by
Michael Natterer
parent
5ce64ce234
commit
9dabd23e2d
@ -241,7 +241,9 @@ gimp_drawable_tree_view_drop_viewable (GimpContainerTreeView *view,
|
||||
GIMP_PATTERN_BUCKET_FILL,
|
||||
GIMP_NORMAL_MODE, GIMP_OPACITY_OPAQUE,
|
||||
FALSE, /* no seed fill */
|
||||
FALSE, 0.0, FALSE, /* fill params */
|
||||
FALSE, /* don't fill transp */
|
||||
GIMP_SELECT_CRITERION_COMPOSITE,
|
||||
0.0, FALSE, /* fill params */
|
||||
0.0, 0.0, /* ignored */
|
||||
NULL, GIMP_PATTERN (src_viewable));
|
||||
gimp_image_flush (GIMP_ITEM_TREE_VIEW (view)->image);
|
||||
@ -266,7 +268,9 @@ gimp_drawable_tree_view_drop_color (GimpContainerTreeView *view,
|
||||
GIMP_FG_BUCKET_FILL,
|
||||
GIMP_NORMAL_MODE, GIMP_OPACITY_OPAQUE,
|
||||
FALSE, /* no seed fill */
|
||||
FALSE, 0.0, FALSE, /* fill params */
|
||||
FALSE, /* don't fill transp */
|
||||
GIMP_SELECT_CRITERION_COMPOSITE,
|
||||
0.0, FALSE, /* fill params */
|
||||
0.0, 0.0, /* ignored */
|
||||
color, NULL);
|
||||
gimp_image_flush (GIMP_ITEM_TREE_VIEW (view)->image);
|
||||
@ -345,8 +349,10 @@ gimp_drawable_tree_view_new_dropped (GimpItemTreeView *view,
|
||||
fill_mode,
|
||||
gimp_context_get_paint_mode (context),
|
||||
gimp_context_get_opacity (context),
|
||||
FALSE /* no seed fill */,
|
||||
FALSE, 0.0, FALSE, 0.0, 0.0 /* fill params */,
|
||||
FALSE, /* no seed fill */
|
||||
FALSE, /* don't fill transp */
|
||||
GIMP_SELECT_CRITERION_COMPOSITE,
|
||||
0.0, FALSE, 0.0, 0.0 /* fill params */,
|
||||
color, pattern);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user