summaryrefslogtreecommitdiff
path: root/gdk/gdkdnd.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>1999-01-05 23:45:21 +0000
committerOwen Taylor <otaylor@src.gnome.org>1999-01-05 23:45:21 +0000
commit1fd7a6e491b6b76f9281bb14e6161a75df71bf5e (patch)
treea58f1fc1d43aade9e3268238c6caab970f94f12a /gdk/gdkdnd.c
parentce87813af668f77f19509b0b69d6ee9b529cc231 (diff)
downloadgtk+-1fd7a6e491b6b76f9281bb14e6161a75df71bf5e.tar.gz
Make gtk_propagate_event() non-static, we need it in gtkdnd.c so that the
Tue Jan 5 15:03:47 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkmain.c (gtk_propagate_event): Make gtk_propagate_event() non-static, we need it in gtkdnd.c so that the button-release we synthesize gets propagated correctly. * gtk/gtkdnd.c: Use gtk_propagate_event() so release gets to a GtkList. But we can't really get this right without access to the windows event masks and doing X-style propagation ourselves. Tue Jan 5 11:31:55 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkselection.c (gtk_target_list_unref): Free memory allocated for target lists. * gtk/gtkdnd.c (gtk_drag_drop_finished): Release selections before destroying info structure. * gdk/gdkdnd.c gdktypes.h (gdk_drag_get_protocol): Add new value GDK_DRAG_PROTO_NONE, use it for non-drag targets, to quiet Purify. * gdk/gdkdnd.c (gdk_window_register_dnd): Set size of property properly.
Diffstat (limited to 'gdk/gdkdnd.c')
-rw-r--r--gdk/gdkdnd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/gdkdnd.c b/gdk/gdkdnd.c
index 3cd5effbf7..728bdb7f5d 100644
--- a/gdk/gdkdnd.c
+++ b/gdk/gdkdnd.c
@@ -2541,6 +2541,7 @@ gdk_drag_get_protocol (guint32 xid,
}
}
+ *protocol = GDK_DRAG_PROTO_NONE;
return GDK_NONE;
}
@@ -2950,8 +2951,7 @@ gdk_window_register_dnd (GdkWindow *window)
GDK_WINDOW_XWINDOW (window),
xdnd_aware_atom, XA_ATOM,
32, PropModeReplace,
- (guchar *)&xdnd_version,
- sizeof (xdnd_version));
+ (guchar *)&xdnd_version, 1);
}
/*************************************************************