[gtk+] quartz: convert GdkQuartzWindow to new drag context API
- From: Kristian Rietveld <kristian src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] quartz: convert GdkQuartzWindow to new drag context API
- Date: Wed, 22 Dec 2010 16:53:15 +0000 (UTC)
commit 881ea6e06c626adcb41fe052075ec457af3243db
Author: Kristian Rietveld <kris gtk org>
Date: Wed Dec 22 13:32:14 2010 +0100
quartz: convert GdkQuartzWindow to new drag context API
gdk/quartz/GdkQuartzWindow.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/quartz/GdkQuartzWindow.c b/gdk/quartz/GdkQuartzWindow.c
index 6fd0c9b..22ad990 100644
--- a/gdk/quartz/GdkQuartzWindow.c
+++ b/gdk/quartz/GdkQuartzWindow.c
@@ -441,7 +441,7 @@ update_context_from_dragging_info (id <NSDraggingInfo> sender)
{
g_assert (current_context != NULL);
- GDK_DRAG_CONTEXT_PRIVATE (current_context)->dragging_info = sender;
+ 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;
}
@@ -455,7 +455,7 @@ update_context_from_dragging_info (id <NSDraggingInfo> sender)
if (current_context)
g_object_unref (current_context);
- current_context = gdk_drag_context_new ();
+ current_context = g_object_new (GDK_TYPE_QUARTZ_DRAG_CONTEXT, NULL);
update_context_from_dragging_info (sender);
window = [[self contentView] gdkWindow];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]