From b9e862339750beb5ba8dde7f7eec780ef4826a71 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Sat, 30 Oct 1999 16:16:08 +0000 Subject: [PATCH] forgot to set "connected" flag after connecting to the dnd signals of a 1999-10-30 Michael Natterer * 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). --- ChangeLog | 10 +++++++++- app/gimpdnd.c | 6 ++++++ app/widgets/gimpdnd.c | 6 ++++++ 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4202f89a02..9f00de83a1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +1999-10-30 Michael Natterer + + * 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 * app/lc_dialog.c: removed the GimpImage "destroy" callback @@ -17,7 +25,7 @@ 1999-10-30 Michael Natterer - * app_procs.c + * app/app_procs.c * app/commands.[ch] * app/interface.c * app/menus.c diff --git a/app/gimpdnd.c b/app/gimpdnd.c index 6cafa7683d..24d1a496e9 100644 --- a/app/gimpdnd.c +++ b/app/gimpdnd.c @@ -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), diff --git a/app/widgets/gimpdnd.c b/app/widgets/gimpdnd.c index 6cafa7683d..24d1a496e9 100644 --- a/app/widgets/gimpdnd.c +++ b/app/widgets/gimpdnd.c @@ -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),