diff options
author | Owen Taylor <otaylor@gtk.org> | 1999-01-23 20:32:20 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 1999-01-23 20:32:20 +0000 |
commit | 79fbe4824238ba68a1b801b9a3a72fffbb4041c5 (patch) | |
tree | 6e10675a92745d4de714a07a23a89cd8176728ad /tests/testdnd.c | |
parent | 6a690c6d3f6ca8af6fc5ac7eb47c55ae5d2f2e12 (diff) | |
download | gtk+-79fbe4824238ba68a1b801b9a3a72fffbb4041c5.tar.gz |
X expects longs, not uint32 for XChangeProperty, when format == 32.
Sat Jan 23 11:15:39 1999 Owen Taylor <otaylor@gtk.org>
* gdk/gdkdnd.c (gdk_window_register_dnd): X expects
longs, not uint32 for XChangeProperty, when
format == 32.
* gdk/gdkdnd.c (motif_read_initiator_info): Byte-swap
the MotifInitiatorInfo structure if necessary.
* gdk/gdkdnd.c: When extracting and constructing
Motif DND messages, don't use data.s[], data.l[]
since on 64bit architectures, these won't necessarily
be in the same place with data.b[].
* gtk/testdnd.c (target_drag_drop): Return TRUE for
drag_drop within the drop zone.
* gtk/gtkdnd.c (gtk_drag_dest_handle_event): Only send
a XmTRANSFER_FAILURE if no drop site is found, not
on every drop!
Diffstat (limited to 'tests/testdnd.c')
-rw-r--r-- | tests/testdnd.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/testdnd.c b/tests/testdnd.c index 263e7f50dc..f258c1b978 100644 --- a/tests/testdnd.c +++ b/tests/testdnd.c @@ -332,9 +332,12 @@ target_drag_drop (GtkWidget *widget, gtk_pixmap_set (GTK_PIXMAP (widget), trashcan_closed, trashcan_closed_mask); if (context->targets) - gtk_drag_get_data (widget, context, - GPOINTER_TO_INT (context->targets->data), - time); + { + gtk_drag_get_data (widget, context, + GPOINTER_TO_INT (context->targets->data), + time); + return TRUE; + } return FALSE; } |