g_set_object (&context->source_surface, source_surface);
g_set_object (&context->dest_surface, dest_surface);
context->actions = actions;
- context->protocol = protocol;
+ context_win32->protocol = protocol;
return context;
}
current_dest_drag));
if ((current_dest_drag != NULL) &&
- (current_dest_drag->protocol == GDK_DRAG_PROTO_LOCAL) &&
+ (GDK_WIN32_DRAG_CONTEXT (current_dest_drag)->protocol == GDK_DRAG_PROTO_LOCAL) &&
(current_dest_drag->source_surface == context->source_surface))
{
tmp_event = gdk_event_new (GDK_DRAG_LEAVE);
current_dest_drag));
if ((current_dest_drag != NULL) &&
- (current_dest_drag->protocol == GDK_DRAG_PROTO_LOCAL) &&
+ (GDK_WIN32_DRAG_CONTEXT (current_dest_drag)->protocol == GDK_DRAG_PROTO_LOCAL) &&
(current_dest_drag->source_surface == context->source_surface))
{
GdkWin32DragContext *current_dest_drag_win32;
current_dest_drag));
if ((current_dest_drag != NULL) &&
- (current_dest_drag->protocol == GDK_DRAG_PROTO_LOCAL) &&
+ (GDK_WIN32_DRAG_CONTEXT (current_dest_drag)->protocol == GDK_DRAG_PROTO_LOCAL) &&
(current_dest_drag->source_surface == context->source_surface))
{
GdkWin32DragContext *context_win32;
if (!use_ole2_dnd)
{
- if (context->protocol == GDK_DRAG_PROTO_LOCAL)
+ if (GDK_WIN32_DRAG_CONTEXT (context)->protocol == GDK_DRAG_PROTO_LOCAL)
local_send_leave (context, time);
}
if (dest_surface)
{
g_set_object (&context->dest_surface, dest_surface);
- context->protocol = protocol;
+ context_win32->protocol = protocol;
switch (protocol)
{
{
if (context_win32->drag_status == GDK_DRAG_STATUS_DRAG)
{
- switch (context->protocol)
+ switch (context_win32->protocol)
{
case GDK_DRAG_PROTO_LOCAL:
local_send_motion (context, x_root, y_root, suggested_action, time);
if (!use_ole2_dnd)
{
if (context->dest_surface &&
- context->protocol == GDK_DRAG_PROTO_LOCAL)
+ GDK_WIN32_DRAG_CONTEXT (context)->protocol == GDK_DRAG_PROTO_LOCAL)
local_send_drop (context, time);
}
else
if (!use_ole2_dnd)
if (context->dest_surface)
{
- if (context->protocol == GDK_DRAG_PROTO_WIN32_DROPFILES)
+ if (GDK_WIN32_DRAG_CONTEXT (context)->protocol == GDK_DRAG_PROTO_WIN32_DROPFILES)
_gdk_dropfiles_store (NULL);
}
}
static GdkAtom
gdk_win32_drag_context_get_selection (GdkDragContext *context)
{
- switch (context->protocol)
+ switch (GDK_WIN32_DRAG_CONTEXT (context)->protocol)
{
case GDK_DRAG_PROTO_LOCAL:
return _gdk_win32_selection_atom (GDK_WIN32_ATOM_INDEX_LOCAL_DND_SELECTION);
#include "gdkdeviceprivate.h"
#include "gdkdevice-wintab.h"
#include "gdkwin32dnd.h"
+#include "gdkwin32dnd-private.h"
#include "gdkdisplay-win32.h"
//#include "gdkselection-win32.h"
#include "gdkdndprivate.h"
if (event->dnd.context != NULL)
g_print ("ctx:%p: %s %s src:%p dest:%p",
event->dnd.context,
- _gdk_win32_drag_protocol_to_string (event->dnd.context->protocol),
+ _gdk_win32_drag_protocol_to_string (GDK_WIN32_DRAG_CONTEXT (event->dnd.context)->protocol),
event->dnd.context->is_source ? "SOURCE" : "DEST",
event->dnd.context->source_surface == NULL ? NULL : GDK_SURFACE_HWND (event->dnd.context->source_surface),
event->dnd.context->dest_surface == NULL ? NULL : GDK_SURFACE_HWND (event->dnd.context->dest_surface));