diff --git a/ChangeLog b/ChangeLog index 85c8a551e5..f0d8cb3ff5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2005-06-21 Matthias Clasen + * gtk/gtkdnd.c (gtk_drag_source_set): Connect to + button-release-event as well, to handle touchscreen + scenarios better. (#171490, Markku Vire) + * gtk/*.h: Trivial cleanups. (#169647, #303455, Fabricio Barros Cabral, Benoit Carpentier) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 85c8a551e5..f0d8cb3ff5 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,9 @@ 2005-06-21 Matthias Clasen + * gtk/gtkdnd.c (gtk_drag_source_set): Connect to + button-release-event as well, to handle touchscreen + scenarios better. (#171490, Markku Vire) + * gtk/*.h: Trivial cleanups. (#169647, #303455, Fabricio Barros Cabral, Benoit Carpentier) diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 85c8a551e5..f0d8cb3ff5 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,9 @@ 2005-06-21 Matthias Clasen + * gtk/gtkdnd.c (gtk_drag_source_set): Connect to + button-release-event as well, to handle touchscreen + scenarios better. (#171490, Markku Vire) + * gtk/*.h: Trivial cleanups. (#169647, #303455, Fabricio Barros Cabral, Benoit Carpentier) diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c index dd5ed8745c..a8eb78c4ac 100644 --- a/gtk/gtkdnd.c +++ b/gtk/gtkdnd.c @@ -2321,6 +2321,9 @@ gtk_drag_source_set (GtkWidget *widget, g_signal_connect (widget, "button_press_event", G_CALLBACK (gtk_drag_source_event_cb), site); + g_signal_connect (widget, "button_release_event", + G_CALLBACK (gtk_drag_source_event_cb), + site); g_signal_connect (widget, "motion_notify_event", G_CALLBACK (gtk_drag_source_event_cb), site); @@ -2356,9 +2359,6 @@ gtk_drag_source_unset (GtkWidget *widget) if (site) { - g_signal_handlers_disconnect_by_func (widget, - gtk_drag_source_event_cb, - site); g_signal_handlers_disconnect_by_func (widget, gtk_drag_source_event_cb, site);