grim/guifications3

Closing this branch since we moved to "default" for it a while ago now
org.guifications.gf3
2009-12-06, Gary Kramlich
3707becf4df7
Closing this branch since we moved to "default" for it a while ago now
#include <jni.h>
#include <gflib/gf_event_info.h>
#include <gflib/gf_object.h>
#include <libgtk-java/jg_jnu.h>
#ifndef _Included_org_guifications_gflib_GFEventInfo
#define _Included_org_guifications_gflib_GFEventInfo
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: org_guifications_gflib_GfEventInfo
* Method: gf_event_info_new
* Signature: ()Lorg/gnu/glib/Handle;
*/
JNIEXPORT jobject JNICALL
Java_org_guifications_gflib_GfEventInfo_gf_1event_1info_1new (
JNIEnv* env, jclass klass)
{
return getHandleFromPointer(
env,
gf_event_info_new());
}
/*
* Class: org_guifications_gflib_GfEventInfo
* Method: gf_event_info_set_value
* Signature: (Lorg/gnu/glib/Handle;Ljava/lang/String;Lorg/gnu/glib/Value;)V
*/
JNIEXPORT void JNICALL
Java_org_guifications_gflib_GfEventInfo_gf_1event_1info_1set_1value
(JNIEnv* env, jclass klass, jobject obj1, jstring str, jobject obj2)
{
gf_event_info_set_value(
(GfEventInfo*)getPointerFromHandle(env, obj1),
(gchar*)str,
(GValue*)getPointerFromHandle(env, obj2));
}
/*
* Class: org_guifications_gflib_GfEventInfo
* Method: gf_event_info_get_value
* Signature: (Lorg/gnu/glib/Handle;Ljava/lang/String;)Lorg/gnu/glib/Handle;
*/
JNIEXPORT jobject JNICALL
Java_org_guifications_gflib_GfEventInfo_gf_1event_1info_1get_1value
(JNIEnv* env, jclass klass, jobject obj, jstring str)
{
return getHandleFromPointer(
env,
gf_event_info_get_value(
(GfEventInfo*)getPointerFromHandle(env, obj),
(gchar*)str)
);
}
#ifdef __cplusplus
}
#endif
#endif