Connect to button-release-event as well, to handle touchscreen scenarios

2005-06-21  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkdnd.c (gtk_drag_source_set): Connect to
	button-release-event as well, to handle touchscreen
	scenarios better.  (#171490, Markku Vire)
This commit is contained in:
Matthias Clasen 2005-06-21 05:54:11 +00:00 committed by Matthias Clasen
parent b33e3c06c8
commit d6ef11469b
4 changed files with 15 additions and 3 deletions

View File

@ -1,5 +1,9 @@
2005-06-21 Matthias Clasen <mclasen@redhat.com>
* 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)

View File

@ -1,5 +1,9 @@
2005-06-21 Matthias Clasen <mclasen@redhat.com>
* 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)

View File

@ -1,5 +1,9 @@
2005-06-21 Matthias Clasen <mclasen@redhat.com>
* 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)

View File

@ -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);