/*
 * Java-Gnome Bindings Library
 *
 * Copyright 1998-2002 the Java-Gnome Team, all rights reserved.
 *
 * The Java-Gnome Team Members:
 *   Jean Van Wyk <jeanvanwyk@iname.com>
 *   Jeffrey S. Morgan <jeffrey.morgan@bristolwest.com>
 *   Dan Bornstein <danfuzz@milk.com>
 *
 * The Java-Gnome bindings library is free software distributed under
 * the terms of the GNU Library General Public License version 2.
 *
 * This file was orriginally generated by the Java-GNOME Code Generator
 * Please do not modify the code that is identified as generated.  Also,
 * please insert your code above the generated code.
 *
 * Generation date: 2002-08-02 09:42:18 EDT
 */

#include <jni.h>
#include <sys/types.h>
#include <gtk/gtk.h>
#ifdef __cplusplus
extern "C" 
{
#endif
    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/
    /*
     * Class:     org.gnu.gtk.CheckMenuItem
     * Method:    gtk_check_menu_item_get_type
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_CheckMenuItem_gtk_1check_1menu_1item_1get_1type (JNIEnv 
        *env, jclass cls) 
    {
        {
            return (jint)gtk_check_menu_item_get_type ();
        }
    }

    /*
     * Class:     org.gnu.gtk.CheckMenuItem
     * Method:    gtk_check_menu_item_new
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_CheckMenuItem_gtk_1check_1menu_1item_1new (JNIEnv *env, 
        jclass cls) 
    {
        {
            return (jint)gtk_check_menu_item_new ();
        }
    }

    /*
     * Class:     org.gnu.gtk.CheckMenuItem
     * Method:    gtk_check_menu_item_new_with_label
     * Signature: ([B)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_CheckMenuItem_gtk_1check_1menu_1item_1new_1with_1label (
        JNIEnv *env, jclass cls, jstring label) 
    {
        const gchar* label_g = (*env)->GetStringUTFChars(env, label, NULL);
		jint retval = (jint)gtk_check_menu_item_new_with_label (label_g);
		(*env)->ReleaseStringUTFChars( env, label, label_g );
		return retval;
    }

    /*
     * Class:     org.gnu.gtk.CheckMenuItem
     * Method:    gtk_check_menu_item_new_with_mnemonic
     * Signature: ([B)I
     */
    JNIEXPORT jint JNICALL 
    Java_org_gnu_gtk_CheckMenuItem_gtk_1check_1menu_1item_1new_1with_1mnemonic (JNIEnv *env, jclass 
        cls, jstring label) 
    {
        const gchar* label_g = (*env)->GetStringUTFChars(env, label, NULL);
		jint retval =  (jint)gtk_check_menu_item_new_with_mnemonic (label_g);
		(*env)->ReleaseStringUTFChars(env, label, label_g);
		return retval;
    }

    /*
     * Class:     org.gnu.gtk.CheckMenuItem
     * Method:    gtk_check_menu_item_set_active
     * Signature: (IZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_CheckMenuItem_gtk_1check_1menu_1item_1set_1active (
        JNIEnv *env, jclass cls, jint check_menu_item, jboolean isActive) 
    {
        GtkCheckMenuItem *check_menu_item_g = (GtkCheckMenuItem *)check_menu_item;
        gboolean isActive_g = (gboolean) isActive;
        {
            gtk_check_menu_item_set_active (check_menu_item_g, isActive_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.CheckMenuItem
     * Method:    gtk_check_menu_item_get_active
     * Signature: (I)Z
     */
    JNIEXPORT jboolean JNICALL Java_org_gnu_gtk_CheckMenuItem_gtk_1check_1menu_1item_1get_1active (
        JNIEnv *env, jclass cls, jint check_menu_item) 
    {
        GtkCheckMenuItem *check_menu_item_g = (GtkCheckMenuItem *)check_menu_item;
        {
            jboolean result_j = (jboolean) (gtk_check_menu_item_get_active (check_menu_item_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gtk.CheckMenuItem
     * Method:    gtk_check_menu_item_toggled
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_CheckMenuItem_gtk_1check_1menu_1item_1toggled (JNIEnv 
        *env, jclass cls, jint check_menu_item) 
    {
        GtkCheckMenuItem *check_menu_item_g = (GtkCheckMenuItem *)check_menu_item;
        {
            gtk_check_menu_item_toggled (check_menu_item_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.CheckMenuItem
     * Method:    gtk_check_menu_item_set_inconsistent
     * Signature: (IZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_CheckMenuItem_gtk_1check_1menu_1item_1set_1inconsistent (
        JNIEnv *env, jclass cls, jint check_menu_item, jboolean setting) 
    {
        GtkCheckMenuItem *check_menu_item_g = (GtkCheckMenuItem *)check_menu_item;
        gboolean setting_g = (gboolean) setting;
        {
            gtk_check_menu_item_set_inconsistent (check_menu_item_g, setting_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.CheckMenuItem
     * Method:    gtk_check_menu_item_get_inconsistent
     * Signature: (I)Z
     */
    JNIEXPORT jboolean JNICALL 
    Java_org_gnu_gtk_CheckMenuItem_gtk_1check_1menu_1item_1get_1inconsistent (JNIEnv *env, jclass 
        cls, jint check_menu_item) 
    {
        GtkCheckMenuItem *check_menu_item_g = (GtkCheckMenuItem *)check_menu_item;
        {
            jboolean result_j = (jboolean) (gtk_check_menu_item_get_inconsistent (check_menu_item_g));
            return result_j;
        }
    }

    /****************************************
     * END OF GENERATED CODE
     ****************************************/

/*
 * Class:     org_gnu_gtk_CheckMenuItem
 * Method:    gtk_check_menu_item_set_draw_as_radio
 * Signature: (IZ)V
 */
JNIEXPORT void JNICALL Java_org_gnu_gtk_CheckMenuItem_gtk_1check_1menu_1item_1set_1draw_1as_1radio
  (JNIEnv *env, jclass cls, jint menu, jboolean radio)
{
	gtk_check_menu_item_set_draw_as_radio((GtkCheckMenuItem*)menu, (gboolean)radio);
}
                                                                                
/*
 * Class:     org_gnu_gtk_CheckMenuItem
 * Method:    gtk_check_menu_item_get_draw_as_radio
 * Signature: (I)Z
 */
JNIEXPORT jboolean JNICALL Java_org_gnu_gtk_CheckMenuItem_gtk_1check_1menu_1item_1get_1draw_1as_1radio
  (JNIEnv *env, jclass cls, jint menu)
{
	return (jboolean)gtk_check_menu_item_get_draw_as_radio((GtkCheckMenuItem*)menu);
}
                                                                                

#ifdef __cplusplus
}

#endif
