mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 21:40:19 +00:00
Quartz: Set the drag context target list
So that gdk_drag_context_list_targets() actually returns something.
This commit is contained in:
parent
7d0d90ad62
commit
f86dc163b9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user