Commit f86dc163 authored by John Ralls's avatar John Ralls

Quartz: Set the drag context target list

So that gdk_drag_context_list_targets() actually returns something.
parent 7d0d90ad
......@@ -44,6 +44,8 @@ _gdk_quartz_window_drag_begin (GdkWindow *window,
NULL);
_gdk_quartz_drag_source_context->is_source = TRUE;
_gdk_quartz_drag_source_context->targets = targets;
gdk_drag_context_set_device (_gdk_quartz_drag_source_context, device);
return _gdk_quartz_drag_source_context;
......
......@@ -1248,7 +1248,7 @@ gtk_drag_begin_internal (GtkWidget *widget,
window = [(id<GdkNSView>)[nswindow contentView] gdkWindow];
g_return_val_if_fail (nsevent != NULL, NULL);
context = gdk_drag_begin (window, NULL);
context = gdk_drag_begin (window, target_list->list);
g_return_val_if_fail (context != NULL, NULL);
info = gtk_drag_get_source_info (context, TRUE);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment