Beispiel #1
0
static VALUE
rg_set_accel_path(VALUE self, VALUE accel_path, VALUE accel_group)
{
    gtk_widget_set_accel_path(_SELF(self), RVAL2CSTR(accel_path),
                              GTK_ACCEL_GROUP(RVAL2GOBJ(accel_group)));
    return self;
}
Beispiel #2
0
/*
 * Class:     org_java_gtk_gtk_Widget
 * Method:    gtk_widget_set_accel_path
 * Signature: (JLjava/lang/String;J)V
 */
JNIEXPORT void JNICALL Java_org_java_1gtk_gtk_Widget_gtk_1widget_1set_1accel_1path
  (JNIEnv *env, jclass cls, jlong widget, jstring path, jlong accel_group)
{
	const char* strPath;

	strPath = getJavaString(env, path);
	gtk_widget_set_accel_path((GtkWidget*)widget, strPath, (GtkAccelGroup*)accel_group);
	releaseJavaString(env, path, strPath);
}