Commit e0f25134 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

Applied modified patch from Ben Campbell which adds drop coordinates to

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

	Applied modified patch from Ben Campbell which adds drop
	coordinates to the color drop callback and uses it to insert
	colors in the palette editor. Extended the patch to add drop
	coordinates to all drop callbacks.

	* app/core/gimppalette.[ch]: added gimp_palette_insert_entry().

	* app/display/gimpdisplayshell-dnd.[ch]: added drop coordinates
	to all drop callbacks.

	* app/dialogs/palette-import-dialog.c
	* app/widgets/gimpcolormapeditor.c
	* app/widgets/gimpcontainerview.c
	* app/widgets/gimpdnd.[ch]
	* app/widgets/gimpdrawabletreeview.c
	* app/widgets/gimpfgbgeditor.c
	* app/widgets/gimpgradienteditor.c
	* app/widgets/gimpitemtreeview.c
	* app/widgets/gimppaletteeditor.c
	* app/widgets/gimppropwidgets.c
	* app/widgets/gimpselectioneditor.c
	* app/widgets/gimptoolbox-dnd.c
	* app/widgets/gimptoolbox-image-area.c
	* app/widgets/gimptoolbox-indicator-area.c
	* app/widgets/gimptooloptionseditor.c
	* libgimpwidgets/gimpcolorselect.c: changed accordingly. The passed
	drop coordiantes are so far unused.

	* app/widgets/gimppaletteeditor.c: use the drop coordinates to
	insert the new color into the palette at the right place instead
	of always appending. Fixes bug #150030.
parent 8439ecb6
2004-12-31 Michael Natterer <mitch@gimp.org>
Applied modified patch from Ben Campbell which adds drop
coordinates to the color drop callback and uses it to insert
colors in the palette editor. Extended the patch to add drop
coordinates to all drop callbacks.
* app/core/gimppalette.[ch]: added gimp_palette_insert_entry().
* app/display/gimpdisplayshell-dnd.[ch]: added drop coordinates
to all drop callbacks.
* app/dialogs/palette-import-dialog.c
* app/widgets/gimpcolormapeditor.c
* app/widgets/gimpcontainerview.c
* app/widgets/gimpdnd.[ch]
* app/widgets/gimpdrawabletreeview.c
* app/widgets/gimpfgbgeditor.c
* app/widgets/gimpgradienteditor.c
* app/widgets/gimpitemtreeview.c
* app/widgets/gimppaletteeditor.c
* app/widgets/gimppropwidgets.c
* app/widgets/gimpselectioneditor.c
* app/widgets/gimptoolbox-dnd.c
* app/widgets/gimptoolbox-image-area.c
* app/widgets/gimptoolbox-indicator-area.c
* app/widgets/gimptooloptionseditor.c
* libgimpwidgets/gimpcolorselect.c: changed accordingly. The passed
drop coordiantes are so far unused.
* app/widgets/gimppaletteeditor.c: use the drop coordinates to
insert the new color into the palette at the right place instead
of always appending. Fixes bug #150030.
2004-12-31 Michael Natterer <mitch@gimp.org>
* app/actions/tools-actions.c
......
......@@ -630,7 +630,6 @@ gimp_palette_add_entry (GimpPalette *palette,
entry = g_new0 (GimpPaletteEntry, 1);
entry->color = *color;
entry->name = g_strdup (name ? name : _("Untitled"));
entry->position = palette->n_colors;
......@@ -643,6 +642,45 @@ gimp_palette_add_entry (GimpPalette *palette,
return entry;
}
GimpPaletteEntry *
gimp_palette_insert_entry (GimpPalette *palette,
gint position,
const gchar *name,
const GimpRGB *color)
{
GimpPaletteEntry *entry;
GList *list;
g_return_val_if_fail (GIMP_IS_PALETTE (palette), NULL);
g_return_val_if_fail (color != NULL, NULL);
if (position < 0 || position >= palette->n_colors)
return gimp_palette_add_entry (palette, name, color);
entry = g_new0 (GimpPaletteEntry, 1);
entry->color = *color;
entry->name = g_strdup (name ? name : _("Untitled"));
entry->position = position;
palette->colors = g_list_insert (palette->colors, entry, position);
palette->n_colors += 1;
/* renumber the displaced entries */
for (list = g_list_nth (palette->colors, position + 1);
list;
list = g_list_next (list))
{
entry = (GimpPaletteEntry *) list->data;
entry->position += 1;
}
/* will make the palette dirty too */
gimp_object_name_changed (GIMP_OBJECT (palette));
return entry;
}
void
gimp_palette_delete_entry (GimpPalette *palette,
GimpPaletteEntry *entry)
......
......@@ -630,7 +630,6 @@ gimp_palette_add_entry (GimpPalette *palette,
entry = g_new0 (GimpPaletteEntry, 1);
entry->color = *color;
entry->name = g_strdup (name ? name : _("Untitled"));
entry->position = palette->n_colors;
......@@ -643,6 +642,45 @@ gimp_palette_add_entry (GimpPalette *palette,
return entry;
}
GimpPaletteEntry *
gimp_palette_insert_entry (GimpPalette *palette,
gint position,
const gchar *name,
const GimpRGB *color)
{
GimpPaletteEntry *entry;
GList *list;
g_return_val_if_fail (GIMP_IS_PALETTE (palette), NULL);
g_return_val_if_fail (color != NULL, NULL);
if (position < 0 || position >= palette->n_colors)
return gimp_palette_add_entry (palette, name, color);
entry = g_new0 (GimpPaletteEntry, 1);
entry->color = *color;
entry->name = g_strdup (name ? name : _("Untitled"));
entry->position = position;
palette->colors = g_list_insert (palette->colors, entry, position);
palette->n_colors += 1;
/* renumber the displaced entries */
for (list = g_list_nth (palette->colors, position + 1);
list;
list = g_list_next (list))
{
entry = (GimpPaletteEntry *) list->data;
entry->position += 1;
}
/* will make the palette dirty too */
gimp_object_name_changed (GIMP_OBJECT (palette));
return entry;
}
void
gimp_palette_delete_entry (GimpPalette *palette,
GimpPaletteEntry *entry)
......
......@@ -630,7 +630,6 @@ gimp_palette_add_entry (GimpPalette *palette,
entry = g_new0 (GimpPaletteEntry, 1);
entry->color = *color;
entry->name = g_strdup (name ? name : _("Untitled"));
entry->position = palette->n_colors;
......@@ -643,6 +642,45 @@ gimp_palette_add_entry (GimpPalette *palette,
return entry;
}
GimpPaletteEntry *
gimp_palette_insert_entry (GimpPalette *palette,
gint position,
const gchar *name,
const GimpRGB *color)
{
GimpPaletteEntry *entry;
GList *list;
g_return_val_if_fail (GIMP_IS_PALETTE (palette), NULL);
g_return_val_if_fail (color != NULL, NULL);
if (position < 0 || position >= palette->n_colors)
return gimp_palette_add_entry (palette, name, color);
entry = g_new0 (GimpPaletteEntry, 1);
entry->color = *color;
entry->name = g_strdup (name ? name : _("Untitled"));
entry->position = position;
palette->colors = g_list_insert (palette->colors, entry, position);
palette->n_colors += 1;
/* renumber the displaced entries */
for (list = g_list_nth (palette->colors, position + 1);
list;
list = g_list_next (list))
{
entry = (GimpPaletteEntry *) list->data;
entry->position += 1;
}
/* will make the palette dirty too */
gimp_object_name_changed (GIMP_OBJECT (palette));
return entry;
}
void
gimp_palette_delete_entry (GimpPalette *palette,
GimpPaletteEntry *entry)
......
......@@ -74,6 +74,10 @@ GList * gimp_palette_load (const gchar *filename,
GimpPaletteEntry * gimp_palette_add_entry (GimpPalette *palette,
const gchar *name,
const GimpRGB *color);
GimpPaletteEntry * gimp_palette_insert_entry (GimpPalette *palette,
gint position,
const gchar *name,
const GimpRGB *color);
void gimp_palette_delete_entry (GimpPalette *palette,
GimpPaletteEntry *entry);
......
......@@ -100,6 +100,8 @@ static void palette_import_image_changed (GimpContext *context,
static void palette_import_filename_changed (GimpFileEntry *file_entry,
ImportDialog *import_dialog);
static void import_dialog_drop_callback (GtkWidget *widget,
gint x,
gint y,
GimpViewable *viewable,
gpointer data);
static void palette_import_grad_callback (GtkWidget *widget,
......@@ -509,6 +511,8 @@ palette_import_filename_changed (GimpFileEntry *file_entry,
static void
import_dialog_drop_callback (GtkWidget *widget,
gint x,
gint y,
GimpViewable *viewable,
gpointer data)
{
......
......@@ -66,6 +66,8 @@
void
gimp_display_shell_drop_drawable (GtkWidget *widget,
gint x,
gint y,
GimpViewable *viewable,
gpointer data)
{
......@@ -119,6 +121,8 @@ gimp_display_shell_drop_drawable (GtkWidget *widget,
void
gimp_display_shell_drop_vectors (GtkWidget *widget,
gint x,
gint y,
GimpViewable *viewable,
gpointer data)
{
......@@ -154,6 +158,8 @@ gimp_display_shell_drop_vectors (GtkWidget *widget,
void
gimp_display_shell_drop_svg (GtkWidget *widget,
gint x,
gint y,
const guchar *svg_data,
gsize svg_data_len,
gpointer data)
......@@ -228,6 +234,8 @@ gimp_display_shell_bucket_fill (GimpDisplayShell *shell,
void
gimp_display_shell_drop_pattern (GtkWidget *widget,
gint x,
gint y,
GimpViewable *viewable,
gpointer data)
{
......@@ -241,6 +249,8 @@ gimp_display_shell_drop_pattern (GtkWidget *widget,
void
gimp_display_shell_drop_color (GtkWidget *widget,
gint x,
gint y,
const GimpRGB *color,
gpointer data)
{
......@@ -253,6 +263,8 @@ gimp_display_shell_drop_color (GtkWidget *widget,
void
gimp_display_shell_drop_buffer (GtkWidget *widget,
gint drop_x,
gint drop_y,
GimpViewable *viewable,
gpointer data)
{
......@@ -284,6 +296,8 @@ gimp_display_shell_drop_buffer (GtkWidget *widget,
void
gimp_display_shell_drop_uri_list (GtkWidget *widget,
gint x,
gint y,
GList *uri_list,
gpointer data)
{
......
......@@ -21,25 +21,39 @@
void gimp_display_shell_drop_drawable (GtkWidget *widget,
gint x,
gint y,
GimpViewable *viewable,
gpointer data);
void gimp_display_shell_drop_vectors (GtkWidget *widget,
gint x,
gint y,
GimpViewable *viewable,
gpointer data);
void gimp_display_shell_drop_svg (GtkWidget *widget,
gint x,
gint y,
const guchar *svg_data,
gsize svg_data_length,
gpointer data);
void gimp_display_shell_drop_pattern (GtkWidget *widget,
gint x,
gint y,
GimpViewable *viewable,
gpointer data);
void gimp_display_shell_drop_color (GtkWidget *widget,
gint x,
gint y,
const GimpRGB *color,
gpointer data);
void gimp_display_shell_drop_buffer (GtkWidget *widget,
gint x,
gint y,
GimpViewable *viewable,
gpointer data);
void gimp_display_shell_drop_uri_list (GtkWidget *widget,
gint x,
gint y,
GList *uri_list,
gpointer data);
......
......@@ -113,6 +113,8 @@ static void gimp_colormap_preview_drag_color (GtkWidget *widget,
GimpRGB *color,
gpointer data);
static void gimp_colormap_preview_drop_color (GtkWidget *widget,
gint x,
gint y,
const GimpRGB *color,
gpointer data);
......@@ -763,6 +765,8 @@ gimp_colormap_preview_drag_color (GtkWidget *widget,
static void
gimp_colormap_preview_drop_color (GtkWidget *widget,
gint x,
gint y,
const GimpRGB *color,
gpointer data)
{
......
......@@ -106,9 +106,13 @@ static void gimp_container_view_context_changed (GimpContext *context,
GimpViewable *viewable,
GimpContainerView *view);
static void gimp_container_view_viewable_dropped (GtkWidget *widget,
gint x,
gint y,
GimpViewable *viewable,
gpointer data);
static void gimp_container_view_button_viewable_dropped (GtkWidget *widget,
gint x,
gint y,
GimpViewable *viewable,
gpointer data);
......@@ -1038,6 +1042,8 @@ gimp_container_view_context_changed (GimpContext *context,
static void
gimp_container_view_viewable_dropped (GtkWidget *widget,
gint x,
gint y,
GimpViewable *viewable,
gpointer data)
{
......@@ -1053,6 +1059,8 @@ gimp_container_view_viewable_dropped (GtkWidget *widget,
static void
gimp_container_view_button_viewable_dropped (GtkWidget *widget,
gint x,
gint y,
GimpViewable *viewable,
gpointer data)
{
......
......@@ -73,6 +73,8 @@ typedef void (* GimpDndDragDataFunc) (GtkWidget *widget,
GtkSelectionData *selection,
GdkAtom atom);
typedef gboolean (* GimpDndDropDataFunc) (GtkWidget *widget,
gint x,
gint y,
GCallback set_data_func,
gpointer set_data_data,
GtkSelectionData *selection);
......@@ -109,6 +111,8 @@ static void gimp_dnd_get_uri_list_data (GtkWidget *widget,
GtkSelectionData *selection,
GdkAtom atom);
static gboolean gimp_dnd_set_uri_list_data (GtkWidget *widget,
gint x,
gint y,
GCallback set_uri_list_func,
gpointer set_uri_list_data,
GtkSelectionData *selection);
......@@ -119,6 +123,8 @@ static void gimp_dnd_get_color_data (GtkWidget *widget,
GtkSelectionData *selection,
GdkAtom atom);
static gboolean gimp_dnd_set_color_data (GtkWidget *widget,
gint x,
gint y,
GCallback set_color_func,
gpointer set_color_data,
GtkSelectionData *selection);
......@@ -129,6 +135,8 @@ static void gimp_dnd_get_stream_data (GtkWidget *widget,
GtkSelectionData *selection,
GdkAtom atom);
static gboolean gimp_dnd_set_stream_data (GtkWidget *widget,
gint x,
gint y,
GCallback set_stream_func,
gpointer set_stream_data,
GtkSelectionData *selection);
......@@ -139,6 +147,8 @@ static void gimp_dnd_get_image_data (GtkWidget *widget,
GtkSelectionData *selection,
GdkAtom atom);
static gboolean gimp_dnd_set_image_data (GtkWidget *widget,
gint x,
gint y,
GCallback set_image_func,
gpointer set_image_data,
GtkSelectionData *selection);
......@@ -149,6 +159,8 @@ static void gimp_dnd_get_item_data (GtkWidget *widget,
GtkSelectionData *selection,
GdkAtom atom);
static gboolean gimp_dnd_set_item_data (GtkWidget *widget,
gint x,
gint y,
GCallback set_item_func,
gpointer set_item_data,
GtkSelectionData *selection);
......@@ -160,38 +172,56 @@ static void gimp_dnd_get_data_data (GtkWidget *widget,
GdkAtom atom);
static gboolean gimp_dnd_set_brush_data (GtkWidget *widget,
gint x,
gint y,
GCallback set_brush_func,
gpointer set_brush_data,
GtkSelectionData *selection);
static gboolean gimp_dnd_set_pattern_data (GtkWidget *widget,
gint x,
gint y,
GCallback set_pattern_func,
gpointer set_pattern_data,
GtkSelectionData *selection);
static gboolean gimp_dnd_set_gradient_data (GtkWidget *widget,
gint x,
gint y,
GCallback set_gradient_func,
gpointer set_gradient_data,
GtkSelectionData *selection);
static gboolean gimp_dnd_set_palette_data (GtkWidget *widget,
gint x,
gint y,
GCallback set_palette_func,
gpointer set_palette_data,
GtkSelectionData *selection);
static gboolean gimp_dnd_set_font_data (GtkWidget *widget,
gint x,
gint y,
GCallback set_font_func,
gpointer set_font_data,
GtkSelectionData *selection);
static gboolean gimp_dnd_set_buffer_data (GtkWidget *widget,
gint x,
gint y,
GCallback set_buffer_func,
gpointer set_buffer_data,
GtkSelectionData *selection);
static gboolean gimp_dnd_set_imagefile_data (GtkWidget *widget,
gint x,
gint y,
GCallback set_imagefile_func,
gpointer set_imagefile_data,
GtkSelectionData *selection);
static gboolean gimp_dnd_set_template_data (GtkWidget *widget,
gint x,
gint y,
GCallback set_template_func,
gpointer set_template_data,
GtkSelectionData *selection);
static gboolean gimp_dnd_set_tool_data (GtkWidget *widget,
gint x,
gint y,
GCallback set_tool_func,
gpointer set_tool_data,
GtkSelectionData *selection);
......@@ -729,7 +759,7 @@ gimp_dnd_data_drop_handle (GtkWidget *widget,
dnd_data->set_data_data_name);
if (set_data_func &&
dnd_data->set_data_func (widget,
dnd_data->set_data_func (widget, x, y,
set_data_func,
set_data_data,
selection_data))
......@@ -956,6 +986,8 @@ gimp_dnd_get_uri_list_data (GtkWidget *widget,
static gboolean
gimp_dnd_set_uri_list_data (GtkWidget *widget,
gint x,
gint y,
GCallback set_uri_list_func,
gpointer set_uri_list_data,
GtkSelectionData *selection)
......@@ -965,7 +997,7 @@ gimp_dnd_set_uri_list_data (GtkWidget *widget,
if (! uri_list)
return FALSE;
(* (GimpDndDropUriListFunc) set_uri_list_func) (widget, uri_list,
(* (GimpDndDropUriListFunc) set_uri_list_func) (widget, x, y, uri_list,
set_uri_list_data);
g_list_foreach (uri_list, (GFunc) g_free, NULL);
......@@ -1068,6 +1100,8 @@ gimp_dnd_get_color_data (GtkWidget *widget,
static gboolean
gimp_dnd_set_color_data (GtkWidget *widget,
gint x,
gint y,
GCallback set_color_func,
gpointer set_color_data,
GtkSelectionData *selection)
......@@ -1077,7 +1111,7 @@ gimp_dnd_set_color_data (GtkWidget *widget,
if (! gimp_selection_data_get_color (selection, &color))
return FALSE;
(* (GimpDndDropColorFunc) set_color_func) (widget, &color,
(* (GimpDndDropColorFunc) set_color_func) (widget, x, y, &color,
set_color_data);
return TRUE;
......@@ -1150,6 +1184,8 @@ gimp_dnd_get_stream_data (GtkWidget *widget,
static gboolean
gimp_dnd_set_stream_data (GtkWidget *widget,
gint x,
gint y,
GCallback set_stream_func,
gpointer set_stream_data,
GtkSelectionData *selection)
......@@ -1162,7 +1198,7 @@ gimp_dnd_set_stream_data (GtkWidget *widget,
if (! stream)
return FALSE;
(* (GimpDndDropStreamFunc) set_stream_func) (widget,
(* (GimpDndDropStreamFunc) set_stream_func) (widget, x, y,
stream, stream_length,
set_stream_data);
......@@ -1487,6 +1523,8 @@ gimp_dnd_get_image_data (GtkWidget *widget,
static gboolean
gimp_dnd_set_image_data (GtkWidget *widget,
gint x,
gint y,
GCallback set_image_func,
gpointer set_image_data,
GtkSelectionData *selection)
......@@ -1496,7 +1534,7 @@ gimp_dnd_set_image_data (GtkWidget *widget,
if (! gimage)
return FALSE;
(* (GimpDndDropViewableFunc) set_image_func) (widget,
(* (GimpDndDropViewableFunc) set_image_func) (widget, x, y,
GIMP_VIEWABLE (gimage),
set_image_data);
......@@ -1526,6 +1564,8 @@ gimp_dnd_get_item_data (GtkWidget *widget,
static gboolean
gimp_dnd_set_item_data (GtkWidget *widget,
gint x,
gint y,
GCallback set_item_func,
gpointer set_item_data,
GtkSelectionData *selection)
......@@ -1535,7 +1575,7 @@ gimp_dnd_set_item_data (GtkWidget *widget,
if (! item)
return FALSE;
(* (GimpDndDropViewableFunc) set_item_func) (widget,
(* (GimpDndDropViewableFunc) set_item_func) (widget, x, y,
GIMP_VIEWABLE (item),
set_item_data);
......@@ -1570,6 +1610,8 @@ gimp_dnd_get_data_data (GtkWidget *widget,
static gboolean
gimp_dnd_set_brush_data (GtkWidget *widget,
gint x,
gint y,
GCallback set_brush_func,
gpointer set_brush_data,
GtkSelectionData *selection)
......@@ -1579,7 +1621,7 @@ gimp_dnd_set_brush_data (GtkWidget *widget,
if (! brush)
return FALSE;
(* (GimpDndDropViewableFunc) set_brush_func) (widget,
(* (GimpDndDropViewableFunc) set_brush_func) (widget, x, y,
GIMP_VIEWABLE (brush),
set_brush_data);
......@@ -1593,6 +1635,8 @@ gimp_dnd_set_brush_data (GtkWidget *widget,
static gboolean
gimp_dnd_set_pattern_data (GtkWidget *widget,
gint x,
gint y,
GCallback set_pattern_func,
gpointer set_pattern_data,
GtkSelectionData *selection)
......@@ -1603,7 +1647,7 @@ gimp_dnd_set_pattern_data (GtkWidget *widget,
if (! pattern)
return FALSE;
(* (GimpDndDropViewableFunc) set_pattern_func) (widget,
(* (GimpDndDropViewableFunc) set_pattern_func) (widget, x, y,
GIMP_VIEWABLE (pattern),
set_pattern_data);
......@@ -1617,6 +1661,8 @@ gimp_dnd_set_pattern_data (GtkWidget *widget,
static gboolean
gimp_dnd_set_gradient_data (GtkWidget *widget,
gint x,
gint y,
GCallback set_gradient_func,
gpointer set_gradient_data,
GtkSelectionData *selection)
......@@ -1627,7 +1673,7 @@ gimp_dnd_set_gradient_data (GtkWidget *widget,
if (! gradient)
return FALSE;
(* (GimpDndDropViewableFunc) set_gradient_func) (widget,
(* (GimpDndDropViewableFunc) set_gradient_func) (widget, x, y,
GIMP_VIEWABLE (gradient),
set_gradient_data);
......@@ -1641,6 +1687,8 @@ gimp_dnd_set_gradient_data (GtkWidget *widget,
static gboolean
gimp_dnd_set_palette_data (GtkWidget *widget,
gint x,
gint y,
GCallback set_palette_func,
gpointer set_palette_data,
GtkSelectionData *selection)
......@@ -1651,7 +1699,7 @@ gimp_dnd_set_palette_data (GtkWidget *widget,
if (! palette)
return FALSE;
(* (GimpDndDropViewableFunc) set_palette_func) (widget,
(* (GimpDndDropViewableFunc) set_palette_func) (widget, x, y,
GIMP_VIEWABLE (palette),
set_palette_data);
......@@ -1665,6 +1713,8 @@ gimp_dnd_set_palette_data (GtkWidget *widget,
static gboolean
gimp_dnd_set_font_data (GtkWidget *widget,
gint x,
gint y,
GCallback set_font_func,
gpointer set_font_data,
GtkSelectionData *selection)
......@@ -1674,7 +1724,7 @@ gimp_dnd_set_font_data (GtkWidget *widget,
if (! font)
return FALSE;
(* (GimpDndDropViewableFunc) set_font_func) (widget,
(* (GimpDndDropViewableFunc) set_font_func) (widget, x, y,
GIMP_VIEWABLE (font),
set_font_data);
......@@ -1688,6 +1738,8 @@ gimp_dnd_set_font_data (GtkWidget *widget,
static gboolean
gimp_dnd_set_buffer_data (GtkWidget *widget,
gint x,
gint y,
GCallback set_buffer_func,
gpointer set_buffer_data,
GtkSelectionData *selection)
......@@ -1697,7 +1749,7 @@ gimp_dnd_set_buffer_data (GtkWidget *widget,
if (! buffer)
return FALSE;
(* (GimpDndDropViewableFunc) set_buffer_func) (widget,
(* (GimpDndDropViewableFunc) set_buffer_func) (widget, x, y,
GIMP_VIEWABLE (buffer),
set_buffer_data);
......@@ -1711,6 +1763,8 @@ gimp_dnd_set_buffer_data (GtkWidget *widget,
static gboolean
gimp_dnd_set_imagefile_data (GtkWidget *widget,
gint x,
gint y,
GCallback set_imagefile_func,
gpointer set_imagefile_data,
GtkSelectionData *selection)
......@@ -1721,7 +1775,7 @@ gimp_dnd_set_imagefile_data (GtkWidget *widget,
if (! imagefile)
return FALSE;
(* (GimpDndDropViewableFunc) set_imagefile_func) (widget,
(* (GimpDndDropViewableFunc) set_imagefile_func) (widget, x, y,
GIMP_VIEWABLE (imagefile),
set_imagefile_data);
......@@ -1735,6 +1789,8 @@ gimp_dnd_set_imagefile_data (GtkWidget *widget,
static gboolean
gimp_dnd_set_template_data (GtkWidget *widget,
gint x,
gint y,
GCallback set_template_func,
gpointer set_template_data,
GtkSelectionData *selection)
......@@ -1745,7 +1801,7 @@ gimp_dnd_set_template_data (GtkWidget *widget,
if (! template)
return FALSE;
(* (GimpDndDropViewableFunc) set_template_func) (widget,
(* (GimpDndDropViewableFunc) set_template_func) (widget, x, y,
GIMP_VIEWABLE (template),
set_template_data);
......@@ -1759,6 +1815,8 @@ gimp_dnd_set_template_data (GtkWidget *widget,
static gboolean
gimp_dnd_set_tool_data (GtkWidget *widget,
gint x,
gint y,
GCallback set_tool_func,
gpointer set_tool_data,
GtkSelectionData *selection)
......@@ -1769,7 +1827,7 @@ gimp_dnd_set_tool_data (GtkWidget *widget,
if (! tool_info)
return FALSE;
(* (GimpDndDropViewableFunc) set_tool_func) (widget,
(* (GimpDndDropViewableFunc) set_tool_func) (widget, x, y,
GIMP_VIEWABLE (tool_info),
set_tool_data);
......
......@@ -100,6 +100,8 @@ void gimp_dnd_init (Gimp *gimp);
typedef GList * (* GimpDndDragUriListFunc) (GtkWidget *widget,