Don't use g_drag_context_ref

This commit is contained in:
Tor Lillqvist 2010-05-10 18:27:00 +03:00
parent 671db307cc
commit a709056140

View File

@ -437,7 +437,7 @@ dnd_event_put (GdkEventType type,
e.dnd.x_root = pt.x + _gdk_offset_x; e.dnd.x_root = pt.x + _gdk_offset_x;
e.dnd.y_root = pt.x + _gdk_offset_y; e.dnd.y_root = pt.x + _gdk_offset_y;
gdk_drag_context_ref (e.dnd.context); g_object_ref (e.dnd.context);
if (e.dnd.window != NULL) if (e.dnd.window != NULL)
g_object_ref (e.dnd.window); g_object_ref (e.dnd.window);
@ -1815,7 +1815,7 @@ gdk_drag_begin (GdkWindow *window,
_dnd_source_state = GDK_WIN32_DND_PENDING; _dnd_source_state = GDK_WIN32_DND_PENDING;
pending_src_context = ctx; pending_src_context = ctx;
gdk_drag_context_ref (ctx->context); g_object_ref (ctx->context);
return ctx->context; return ctx->context;
} }