Bug 702369 - foreground selection doesnt work with image precision >8 bit

This removes the obsolete check which makes the tool fail from
gimp_display_shell_set_mask(). Also change the foreground select tool
and the display mask from using GimpChannel to GeglBuffer, because
that's what it needs, simply buffers. Most changed files simply newly
include <gegl.h> because a GeglBuffer appeared in two headers.
This commit is contained in:
Michael Natterer
2013-06-22 22:26:46 +02:00
parent 5290963912
commit 31e9cc2ad9
12 changed files with 36 additions and 42 deletions

View File

@ -186,7 +186,7 @@ struct _GimpDisplayShell
gdouble rotate_drag_angle;
gpointer scroll_info;
GimpDrawable *mask;
GeglBuffer *mask;
GimpRGB mask_color;
GimpMotionBuffer *motion_buffer;
@ -272,7 +272,7 @@ void gimp_display_shell_resume (GimpDisplayShell *shell);
void gimp_display_shell_set_highlight (GimpDisplayShell *shell,
const GdkRectangle *highlight);
void gimp_display_shell_set_mask (GimpDisplayShell *shell,
GimpDrawable *mask,
GeglBuffer *mask,
const GimpRGB *color);