forgot to set "connected" flag after connecting to the dnd signals of a

1999-10-30  Michael Natterer  <mitch@gimp.org>

	* app/gimpdnd.c: forgot to set "connected" flag after connecting
	to the dnd signals of a specific widget, so the dnd stuff
	connected to these signals for every dnd data type (resulting ie
	in multiple bucket fills when dropping a color/pattern to the
	canvas).
This commit is contained in:
Michael Natterer 1999-10-30 16:16:08 +00:00 committed by Michael Natterer
parent 12366a9a7c
commit b9e8623397
3 changed files with 21 additions and 1 deletions

View file

@ -1,3 +1,11 @@
1999-10-30 Michael Natterer <mitch@gimp.org>
* app/gimpdnd.c: forgot to set "connected" flag after connecting
to the dnd signals of a specific widget, so the dnd stuff
connected to these signals for every dnd data type (resulting ie
in multiple bucket fills when dropping a color/pattern to the
canvas).
1999-10-30 Michael Natterer <mitch@gimp.org>
* app/lc_dialog.c: removed the GimpImage "destroy" callback
@ -17,7 +25,7 @@
1999-10-30 Michael Natterer <mitch@gimp.org>
* app_procs.c
* app/app_procs.c
* app/commands.[ch]
* app/interface.c
* app/menus.c

View file

@ -606,6 +606,9 @@ gimp_dnd_data_source_set (GimpDndDataType data_type,
gtk_signal_connect (GTK_OBJECT (widget), "drag_data_get",
GTK_SIGNAL_FUNC (gimp_dnd_data_drag_handle),
NULL);
gtk_object_set_data (GTK_OBJECT (widget), "gimp_dnd_drag_connected",
(gpointer) TRUE);
}
gtk_object_set_data (GTK_OBJECT (widget), "gimp_dnd_get_data_type",
@ -633,6 +636,9 @@ gimp_dnd_data_dest_set (GimpDndDataType data_type,
gtk_signal_connect (GTK_OBJECT (widget), "drag_data_received",
GTK_SIGNAL_FUNC (gimp_dnd_data_drop_handle),
NULL);
gtk_object_set_data (GTK_OBJECT (widget), "gimp_dnd_drop_connected",
(gpointer) TRUE);
}
gtk_object_set_data (GTK_OBJECT (widget),

View file

@ -606,6 +606,9 @@ gimp_dnd_data_source_set (GimpDndDataType data_type,
gtk_signal_connect (GTK_OBJECT (widget), "drag_data_get",
GTK_SIGNAL_FUNC (gimp_dnd_data_drag_handle),
NULL);
gtk_object_set_data (GTK_OBJECT (widget), "gimp_dnd_drag_connected",
(gpointer) TRUE);
}
gtk_object_set_data (GTK_OBJECT (widget), "gimp_dnd_get_data_type",
@ -633,6 +636,9 @@ gimp_dnd_data_dest_set (GimpDndDataType data_type,
gtk_signal_connect (GTK_OBJECT (widget), "drag_data_received",
GTK_SIGNAL_FUNC (gimp_dnd_data_drop_handle),
NULL);
gtk_object_set_data (GTK_OBJECT (widget), "gimp_dnd_drop_connected",
(gpointer) TRUE);
}
gtk_object_set_data (GTK_OBJECT (widget),