GdkDragContext * gdk_drag_begin (GdkWindow *window, GList *targets) { g_assert (_gdk_quartz_drag_source_context == NULL); /* Create fake context */ _gdk_quartz_drag_source_context = gdk_drag_context_new (); _gdk_quartz_drag_source_context->is_source = TRUE; return _gdk_quartz_drag_source_context; }
int clip_GDK_DRAGCONTEXTNEW(ClipMachine * cm) { GdkDragContext *context; C_object *ccontext ; context = gdk_drag_context_new(); if (context) { ccontext = _list_get_cobject(cm, context); if (!ccontext) ccontext = _register_object(cm, context, GDK_TYPE_DRAG_CONTEXT, NULL, NULL); if (ccontext) _clip_mclone(cm, RETPTR(cm), &ccontext->obj); } return 0; }
static VALUE rg_initialize(VALUE self) { G_INITIALIZE(self, gdk_drag_context_new()); return Qnil; }