summaryrefslogtreecommitdiff
path: root/gdk/gdk.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>1999-01-28 01:03:15 +0000
committerOwen Taylor <otaylor@src.gnome.org>1999-01-28 01:03:15 +0000
commit77e99440df31909f584f660de762783a467a14c4 (patch)
tree8be59e235d1d1f40ada467a830a603b54ebb48f1 /gdk/gdk.h
parent4998934dcba802627c798b981ef271ec6cd29880 (diff)
downloadgtk+-77e99440df31909f584f660de762783a467a14c4.tar.gz
Change signatures for gdk_drag_begin() and gdk_drag_motion() so that the
Wed Jan 27 18:57:57 1999 Owen Taylor <otaylor@redhat.com> * gdk/gdk.h gdk/gdkdnd.c: Change signatures for gdk_drag_begin() and gdk_drag_motion() so that the set of possible actions is passed on each motion, not just at the beginning of the drag. We do this so that we can restrict the set of possible drag events when the user presses a modifier key during a drag. * gdk/gdkdnd.c: Send a motif Operation-changed message when the set of possible actions change, as well as when the suggested action change. * gdk/gdkdnd.c: Change the XdndActionList whenever the set of actions change. * gdk/gdkdnd.c: Add a filter to catch changes to the XdndActionList property for the source widget. * gtk/gtkdnd.c: Change the set of possible actions when the user presses Control, Shift, or Control-Shift, to only include the corresponding action. * gtk/gtkdnd.c (gtk_drag_button_release_cb): Disconnect button signals before we possibly free info structure.
Diffstat (limited to 'gdk/gdk.h')
-rw-r--r--gdk/gdk.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdk/gdk.h b/gdk/gdk.h
index bae3ebb874..34accf87c1 100644
--- a/gdk/gdk.h
+++ b/gdk/gdk.h
@@ -262,8 +262,7 @@ GdkAtom gdk_drag_get_selection (GdkDragContext *context);
/* Source side */
GdkDragContext * gdk_drag_begin (GdkWindow *window,
- GList *targets,
- GdkDragAction actions);
+ GList *targets);
guint32 gdk_drag_get_protocol (guint32 xid,
GdkDragProtocol *protocol);
void gdk_drag_find_window (GdkDragContext *context,
@@ -277,7 +276,8 @@ gboolean gdk_drag_motion (GdkDragContext *context,
GdkDragProtocol protocol,
gint x_root,
gint y_root,
- GdkDragAction action,
+ GdkDragAction suggested_action,
+ GdkDragAction possible_actions,
guint32 time);
void gdk_drag_drop (GdkDragContext *context,
guint32 time);