diff options
author | Benjamin Otte <otte@redhat.com> | 2018-05-13 17:03:57 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2018-06-18 23:49:19 +0200 |
commit | 2e27967814276fb94d2c4d1982bc504a26282188 (patch) | |
tree | cd7d4cab45ac51fa5e0871d7a168cd1ac8ceaebf /gdk/quartz | |
parent | 18c3b725b4b2e477ca4d6d8380203ef9ba04b8d6 (diff) | |
download | gtk+-2e27967814276fb94d2c4d1982bc504a26282188.tar.gz |
dnd: Make actions a private member variable
Use a setter in the backends.
Diffstat (limited to 'gdk/quartz')
-rw-r--r-- | gdk/quartz/GdkQuartzNSWindow.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdk/quartz/GdkQuartzNSWindow.c b/gdk/quartz/GdkQuartzNSWindow.c index edf2095b6d..503fbf690c 100644 --- a/gdk/quartz/GdkQuartzNSWindow.c +++ b/gdk/quartz/GdkQuartzNSWindow.c @@ -559,11 +559,13 @@ drag_action_to_drag_operation (GdkDragAction action) static void update_context_from_dragging_info (id <NSDraggingInfo> sender) { + GdkDragAction action; + g_assert (current_context != NULL); GDK_QUARTZ_DRAG_CONTEXT (current_context)->dragging_info = sender; - current_context->suggested_action = drag_operation_to_drag_action ([sender draggingSourceOperationMask]); - current_context->actions = current_context->suggested_action; + action = drag_operation_to_drag_action ([sender draggingSourceOperationMask]); + gdk_drag_context_set_actions (current_context, action, action); } - (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender |