[gtk+] Quartz: Set the drag context target list



commit f86dc163b9151917bde2d7d8649082c5484fff2b
Author: John Ralls <jralls ceridwen us>
Date:   Thu Oct 10 15:21:35 2013 -0700

    Quartz: Set the drag context target list
    
    So that gdk_drag_context_list_targets() actually returns something.

 gdk/quartz/gdkdnd-quartz.c |    2 ++
 gtk/gtkdnd-quartz.c        |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gdk/quartz/gdkdnd-quartz.c b/gdk/quartz/gdkdnd-quartz.c
index 6a1fc7c..b284115 100644
--- a/gdk/quartz/gdkdnd-quartz.c
+++ b/gdk/quartz/gdkdnd-quartz.c
@@ -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;
diff --git a/gtk/gtkdnd-quartz.c b/gtk/gtkdnd-quartz.c
index fd8f2cc..ff37b58 100644
--- a/gtk/gtkdnd-quartz.c
+++ b/gtk/gtkdnd-quartz.c
@@ -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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]