示例#1
0
JNIEXPORT jlong JNICALL
Java_org_gnome_sourceview_GtkSourceStyle_gtk_1source_1style_1copy
(
	JNIEnv* env,
	jclass cls,
	jlong _self
)
{
	GtkSourceStyle* result;
	jlong _result;
	GtkSourceStyle* self;

	// convert parameter self
	self = (GtkSourceStyle*) _self;

	// call function
	result = gtk_source_style_copy(self);

	// cleanup parameter self

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

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

	// and finally
	return _result;
}
示例#2
0
static VALUE
rg_copy(VALUE self)
{
    return GOBJ2RVAL (gtk_source_style_copy (_SELF (self)));
}