[gtk+/font-chooser] quartz: Remove call to deprecated gdk_pointer_ungrab
- From: Alberto Ruiz <aruiz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/font-chooser] quartz: Remove call to deprecated gdk_pointer_ungrab
- Date: Wed, 20 Jul 2011 20:16:31 +0000 (UTC)
commit d6b8870aa0654f275f29de2aa554bfa5bbf7c3e1
Author: Kristian Rietveld <kris gtk org>
Date: Thu Jul 14 14:22:38 2011 +0200
quartz: Remove call to deprecated gdk_pointer_ungrab
gtk/gtkdnd-quartz.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkdnd-quartz.c b/gtk/gtkdnd-quartz.c
index 0761171..49db14e 100644
--- a/gtk/gtkdnd-quartz.c
+++ b/gtk/gtkdnd-quartz.c
@@ -1111,6 +1111,7 @@ gtk_drag_begin_internal (GtkWidget *widget,
{
GtkDragSourceInfo *info;
GdkDragContext *context;
+ GdkDevice *pointer;
NSWindow *nswindow;
context = gdk_drag_begin (gtk_widget_get_window (widget), NULL);
@@ -1167,7 +1168,8 @@ gtk_drag_begin_internal (GtkWidget *widget,
g_idle_add_full (G_PRIORITY_HIGH_IDLE, gtk_drag_begin_idle, context, NULL);
- gdk_pointer_ungrab (0);
+ pointer = gdk_drag_context_get_device (info->context);
+ gdk_device_ungrab (pointer, 0);
return context;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]