static VALUE iview_drag_dest_item(VALUE self) { GtkTreePath* path; GtkIconViewDropPosition pos; gtk_icon_view_get_drag_dest_item(_SELF(self), &path, &pos); return rb_assoc_new(GTKTREEPATH2RVAL(path), GENUM2RVAL(pos, GTK_TYPE_ICON_VIEW_DROP_POSITION)); }
JNIEXPORT void JNICALL Java_org_gnome_gtk_GtkIconView_gtk_1icon_1view_1get_1drag_1dest_1item ( JNIEnv* env, jclass cls, jlong _self, jlongArray _path, jintArray _pos ) { GtkIconView* self; GtkTreePath** path; GtkIconViewDropPosition* pos; // convert parameter self self = (GtkIconView*) _self; // convert parameter path path = (GtkTreePath**) bindings_java_convert_jarray_to_gpointer(env, _path); if (path == NULL) { return; // Java Exception already thrown } // convert parameter pos pos = (GtkIconViewDropPosition*) (*env)->GetIntArrayElements(env, _pos, NULL); if (pos == NULL) { return; // Java Exception already thrown } // call function gtk_icon_view_get_drag_dest_item(self, path, pos); // cleanup parameter self // cleanup parameter path bindings_java_convert_gpointer_to_jarray(env, (gpointer*)path, _path); // cleanup parameter pos (*env)->ReleaseIntArrayElements(env, _pos, (jint*)pos, 0); }