Ejemplo n.º 1
0
JNIEXPORT jlong JNICALL
Java_org_gnome_gtk_GtkTextChildAnchor_gtk_1text_1child_1anchor_1new
(
	JNIEnv* env,
	jclass cls
)
{
	GtkTextChildAnchor* result;
	jlong _result;

	// call function
	result = gtk_text_child_anchor_new();

	// translate return value to JNI type
	_result = (jlong) result;

	// cleanup return value
	if (result != NULL) {
		bindings_java_memory_cleanup((GObject*)result, TRUE);
	}

	// and finally
	return _result;
}
Ejemplo n.º 2
0
static VALUE
textchild_initialize(int argc, VALUE *argv, VALUE self)
{
    RBGTK_INITIALIZE(self, gtk_text_child_anchor_new());
    return Qnil;
}