diff options
Diffstat (limited to 'tests/testdnd.c')
-rw-r--r-- | tests/testdnd.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/testdnd.c b/tests/testdnd.c index 26c38f3d23..2736bf3937 100644 --- a/tests/testdnd.c +++ b/tests/testdnd.c @@ -302,12 +302,19 @@ target_drag_motion (GtkWidget *widget, gint y, guint time) { + GtkWidget *source_widget; + if (!have_drag) { have_drag = TRUE; gtk_pixmap_set (GTK_PIXMAP (widget), trashcan_open, trashcan_open_mask); } - g_print("motion\n"); + + source_widget = gtk_drag_get_source_widget (context); + g_print("motion, source %s\n", source_widget ? + gtk_type_name (GTK_OBJECT (source_widget)->klass->type) : + "unknown"); + gdk_drag_status (context, context->suggested_action, time); return TRUE; } |