summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2004-08-27 23:38:06 +0000
committerTor Lillqvist <tml@src.gnome.org>2004-08-27 23:38:06 +0000
commiteb388dfcfee7dc137c39595f2e3fe911384a100c (patch)
treef54b1e7649363d0e7348c259b00d21a50552d99e /gdk
parent0224e8a2ecc18fa68a2a8c5f9e583d96bb512cca (diff)
downloadgtk+-eb388dfcfee7dc137c39595f2e3fe911384a100c.tar.gz
Add drop_failed, like in the X11 backend. Nothing sets it, though.
2004-08-27 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkdnd-win32.c (GdkDragContextPrivateWin32): Add drop_failed, like in the X11 backend. Nothing sets it, though. (gdk_drag_drop_succeeded): Copy from X11 backend.
Diffstat (limited to 'gdk')
-rw-r--r--gdk/win32/gdkdnd-win32.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/gdk/win32/gdkdnd-win32.c b/gdk/win32/gdkdnd-win32.c
index 400dbe68a3..7b8a86c467 100644
--- a/gdk/win32/gdkdnd-win32.c
+++ b/gdk/win32/gdkdnd-win32.c
@@ -93,8 +93,9 @@ struct _GdkDragContextPrivateWin32 {
#endif
guint16 last_x; /* Coordinates from last event */
guint16 last_y;
- HWND dest_xid;
- guint drag_status; /* Current status of drag */
+ HWND dest_xid;
+ guint drag_status : 4; /* Current status of drag */
+ guint drop_failed : 1; /* Whether the drop was unsuccessful */
};
#define GDK_DRAG_CONTEXT_PRIVATE_DATA(context) ((GdkDragContextPrivateWin32 *) GDK_DRAG_CONTEXT (context)->windowing_data)
@@ -1731,3 +1732,16 @@ gdk_drag_get_selection (GdkDragContext *context)
else
return GDK_NONE;
}
+
+gboolean
+gdk_drag_drop_succeeded (GdkDragContext *context)
+{
+ GdkDragContextPrivateWin32 *private;
+
+ g_return_val_if_fail (context != NULL, FALSE);
+
+ private = GDK_DRAG_CONTEXT_PRIVATE_DATA (context);
+
+ /* FIXME: Can we set drop_failed when the drop has failed? */
+ return !private->drop_failed;
+}