diff options
Diffstat (limited to 'native/jni/gtk-peer/GtkDragSourceContextPeer.c')
-rw-r--r-- | native/jni/gtk-peer/GtkDragSourceContextPeer.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/native/jni/gtk-peer/GtkDragSourceContextPeer.c b/native/jni/gtk-peer/GtkDragSourceContextPeer.c index b8f1ba5b2..c1c4bfda8 100644 --- a/native/jni/gtk-peer/GtkDragSourceContextPeer.c +++ b/native/jni/gtk-peer/GtkDragSourceContextPeer.c @@ -154,15 +154,15 @@ Java_gnu_java_awt_dnd_peer_gtk_GtkDragSourceContextPeer_nativeSetCursor gdk_cursor_type = GDK_LEFT_PTR; } - win = widget->window; - if ((widget->window) == NULL) - win = widget->window; + win = gtk_widget_get_window(widget); + if ((gtk_widget_get_window(widget)) == NULL) + win = gtk_widget_get_window(widget); gdk_cursor = gdk_cursor_new (gdk_cursor_type); gdk_window_set_cursor (win, gdk_cursor); - gdk_cursor_unref (gdk_cursor); - + //gdk_cursor_unref (gdk_cursor); + g_object_unref(gdk_cursor); gdk_flush(); gdk_threads_leave (); |