use the coordinates passed in the color drop callback instead of

2004-12-31  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpfgbgeditor.[ch]: use the coordinates passed in
	the color drop callback instead of remembering them in the
	drag_motion handler.
This commit is contained in:
Michael Natterer 2004-12-31 16:53:22 +00:00 committed by Michael Natterer
parent 515482fc20
commit c1ddf3ea45
3 changed files with 9 additions and 6 deletions

View File

@ -1,3 +1,9 @@
2004-12-31 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpfgbgeditor.[ch]: use the coordinates passed in
the color drop callback instead of remembering them in the
drag_motion handler.
2004-12-31 Sven Neumann <sven@gimp.org>
* tools/kernelgen.c: fixed rounding so that all brush kernels are

View File

@ -527,11 +527,9 @@ gimp_fg_bg_editor_drag_motion (GtkWidget *widget,
guint time)
{
GimpFgBgEditor *editor = GIMP_FG_BG_EDITOR (widget);
FgBgTarget target = gimp_fg_bg_editor_target (editor, x, y);
editor->dnd_target = gimp_fg_bg_editor_target (editor, x, y);
if (editor->dnd_target == FORE_AREA ||
editor->dnd_target == BACK_AREA)
if (target == FORE_AREA || target == BACK_AREA)
{
gdk_drag_status (context, GDK_ACTION_COPY, time);
@ -639,7 +637,7 @@ gimp_fg_bg_editor_drop_color (GtkWidget *widget,
if (editor->context)
{
switch (editor->dnd_target)
switch (gimp_fg_bg_editor_target (editor, x, y))
{
case FORE_AREA:
gimp_context_set_foreground (editor->context, color);

View File

@ -52,7 +52,6 @@ struct _GimpFgBgEditor
gint rect_width;
gint rect_height;
gint click_target;
gint dnd_target;
};
struct _GimpFgBgEditorClass