[gtk+/gtk-3-10] Quartz: Set the drag context target list
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-10] Quartz: Set the drag context target list
- Date: Thu, 10 Oct 2013 22:41:06 +0000 (UTC)
commit 38d400ff9985dca8aa3537ab63403c569237e338
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]