diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-10-07 20:03:15 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-10-07 20:03:15 +0000 |
commit | f3f016d0456e8968240269e832f440d24716c8a7 (patch) | |
tree | 2aefda8d0c940a83659bb78208792d12dca898cd /gdk/gdkdnd.h | |
parent | 253458ec525ac1d1ed45ce47a79365df7905e01f (diff) | |
download | gtk+-f3f016d0456e8968240269e832f440d24716c8a7.tar.gz |
Add gdk_drag_find_window_for_screen(), so that we can interpret x_root /
Mon Oct 7 15:48:44 2002 Owen Taylor <otaylor@redhat.com>
* gdk/gdkdnd.[ch] gdk/x11/gdkdnd-x11.c: Add
gdk_drag_find_window_for_screen(), so that we can
interpret x_root / y_root relative to the correct screen.
* gdk/gdkdnd.c Makefile.am gdk/x11/gdkdnd-x11.c
gdk/fb/gdkdnd-fb.c gdk/win32/gdkdnd-win32.c: New file.
Move gdk_drag_find_window(), gdk_drag_get_protocol() here.
* gtk/gtkdnd.c: Handle drags between screens; use
a fallback icon for icons set as windows/pixmaps,
move the drag icon between displays for icons set as
pixbufs.
* gdk/x11/gdkkeys-x11.c (update_keymaps): Fix infinite
loop from last change.
Diffstat (limited to 'gdk/gdkdnd.h')
-rw-r--r-- | gdk/gdkdnd.h | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/gdk/gdkdnd.h b/gdk/gdkdnd.h index 5ff7448b63..177cd4bfb0 100644 --- a/gdk/gdkdnd.h +++ b/gdk/gdkdnd.h @@ -102,20 +102,28 @@ GdkAtom gdk_drag_get_selection (GdkDragContext *context); GdkDragContext * gdk_drag_begin (GdkWindow *window, GList *targets); -guint32 gdk_drag_get_protocol_for_display (GdkDisplay *display, - guint32 xid, - GdkDragProtocol *protocol); +guint32 gdk_drag_get_protocol_for_display (GdkDisplay *display, + guint32 xid, + GdkDragProtocol *protocol); +void gdk_drag_find_window_for_screen (GdkDragContext *context, + GdkWindow *drag_window, + GdkScreen *screen, + gint x_root, + gint y_root, + GdkWindow **dest_window, + GdkDragProtocol *protocol); + #ifndef GDK_MULTIHEAD_SAFE -guint32 gdk_drag_get_protocol (guint32 xid, - GdkDragProtocol *protocol); +guint32 gdk_drag_get_protocol (guint32 xid, + GdkDragProtocol *protocol); +void gdk_drag_find_window (GdkDragContext *context, + GdkWindow *drag_window, + gint x_root, + gint y_root, + GdkWindow **dest_window, + GdkDragProtocol *protocol); #endif /* GDK_MULTIHEAD_SAFE */ -void gdk_drag_find_window (GdkDragContext *context, - GdkWindow *drag_window, - gint x_root, - gint y_root, - GdkWindow **dest_window, - GdkDragProtocol *protocol); gboolean gdk_drag_motion (GdkDragContext *context, GdkWindow *dest_window, GdkDragProtocol protocol, |