static VALUE
rg_drag_begin(VALUE self, VALUE targets)
{
    GList *list = RVAL2GDKATOMGLIST(targets);
    GdkDragContext *result = gdk_drag_begin(_SELF(self), list);
    g_list_free(list);

    return GOBJ2RVAL(result);
}
Beispiel #2
0
static VALUE
rg_s_drag_begin(G_GNUC_UNUSED VALUE self, VALUE rbwindow, VALUE rbtargets)
{
    GdkWindow *window = GDK_WINDOW(RVAL2GOBJ(rbwindow));
    GList *targets = RVAL2GDKATOMGLIST(rbtargets);
    GdkDragContext *result = gdk_drag_begin(window, targets);

    g_list_free(targets);

    return GOBJ2RVAL(result);
}