JNIEXPORT void JNICALL Java_org_gnome_gtk_GtkIconView_gtk_1icon_1view_1set_1drag_1dest_1item ( JNIEnv* env, jclass cls, jlong _self, jlong _path, jint _pos ) { GtkIconView* self; GtkTreePath* path; GtkIconViewDropPosition pos; // convert parameter self self = (GtkIconView*) _self; // convert parameter path path = (GtkTreePath*) _path; // convert parameter pos pos = (GtkIconViewDropPosition) _pos; // call function gtk_icon_view_set_drag_dest_item(self, path, pos); // cleanup parameter self // cleanup parameter path // cleanup parameter pos }
static VALUE iview_set_drag_dest_item(VALUE self, VALUE path, VALUE pos) { gtk_icon_view_set_drag_dest_item(_SELF(self), NIL_P(path) ? NULL : RVAL2GTKTREEPATH(path), RVAL2GENUM(pos, GTK_TYPE_ICON_VIEW_DROP_POSITION)); return self; }