/*
 * 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:30 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.MenuItem
     * Method:    gtk_menu_item_get_type
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_MenuItem_gtk_1menu_1item_1get_1type (JNIEnv *env, 
        jclass cls) 
    {
        {
            return (jint)gtk_menu_item_get_type ();
        }
    }

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

    /*
     * Class:     org.gnu.gtk.MenuItem
     * Method:    gtk_menu_item_new_with_label
     * Signature: (java.lang.String;)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_MenuItem_gtk_1menu_1item_1new_1with_1label (JNIEnv 
        *env, jclass cls, jstring label) 
    {
        gchar* label_g = (gchar*)(*env)->GetStringUTFChars(env, label, 0);
        jint result = (jint)gtk_menu_item_new_with_label (label_g);
        (*env)->ReleaseStringUTFChars(env, label, label_g);
        return result;
    }

    /*
     * Class:     org.gnu.gtk.MenuItem
     * Method:    gtk_menu_item_new_with_mnemonic
     * Signature: (java.lang.String;)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_MenuItem_gtk_1menu_1item_1new_1with_1mnemonic (JNIEnv 
        *env, jclass cls, jstring label) 
    {
        gchar* label_g = (gchar*)(*env)->GetStringUTFChars(env, label, 0);
        jint result = (jint)gtk_menu_item_new_with_mnemonic (label_g);
        (*env)->ReleaseStringUTFChars(env, label, label_g);
        return result;
    }

    /*
     * Class:     org.gnu.gtk.MenuItem
     * Method:    gtk_menu_item_set_submenu
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_MenuItem_gtk_1menu_1item_1set_1submenu (JNIEnv *env, 
        jclass cls, jint menu_item, jint submenu) 
    {
        GtkMenuItem *menu_item_g = (GtkMenuItem *)menu_item;
        GtkWidget *submenu_g = (GtkWidget *)submenu;
        {
            gtk_menu_item_set_submenu (menu_item_g, submenu_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.MenuItem
     * Method:    gtk_menu_item_get_submenu
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_MenuItem_gtk_1menu_1item_1get_1submenu (JNIEnv *env, 
        jclass cls, jint menu_item) 
    {
        GtkMenuItem *menu_item_g = (GtkMenuItem *)menu_item;
        {
            return (jint)gtk_menu_item_get_submenu (menu_item_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.MenuItem
     * Method:    gtk_menu_item_remove_submenu
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_MenuItem_gtk_1menu_1item_1remove_1submenu (JNIEnv *env, 
        jclass cls, jint menu_item) 
    {
        GtkMenuItem *menu_item_g = (GtkMenuItem *)menu_item;
        {
            gtk_menu_item_remove_submenu (menu_item_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.MenuItem
     * Method:    gtk_menu_item_select
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_MenuItem_gtk_1menu_1item_1select (JNIEnv *env, jclass 
        cls, jint menu_item) 
    {
        GtkMenuItem *menu_item_g = (GtkMenuItem *)menu_item;
        {
            gtk_menu_item_select (menu_item_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.MenuItem
     * Method:    gtk_menu_item_deselect
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_MenuItem_gtk_1menu_1item_1deselect (JNIEnv *env, jclass 
        cls, jint menu_item) 
    {
        GtkMenuItem *menu_item_g = (GtkMenuItem *)menu_item;
        {
            gtk_menu_item_deselect (menu_item_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.MenuItem
     * Method:    gtk_menu_item_activate
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_MenuItem_gtk_1menu_1item_1activate (JNIEnv *env, jclass 
        cls, jint menu_item) 
    {
        GtkMenuItem *menu_item_g = (GtkMenuItem *)menu_item;
        {
            gtk_menu_item_activate (menu_item_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.MenuItem
     * Method:    gtk_menu_item_toggle_size_request
     * Signature: (I[Lint ;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_MenuItem_gtk_1menu_1item_1toggle_1size_1request (JNIEnv 
        *env, jclass cls, jint menu_item, jintArray requisition) 
    {
        GtkMenuItem *menu_item_g = (GtkMenuItem *)menu_item;
        gint *requisition_g = (gint *) (*env)->GetIntArrayElements (env, requisition, NULL);
        {
            gtk_menu_item_toggle_size_request (menu_item_g, requisition_g);
            (*env)->ReleaseIntArrayElements (env, requisition, (jint *) requisition_g, 0);
        }
    }

    /*
     * Class:     org.gnu.gtk.MenuItem
     * Method:    gtk_menu_item_toggle_size_allocate
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_MenuItem_gtk_1menu_1item_1toggle_1size_1allocate (
        JNIEnv *env, jclass cls, jint menu_item, jint allocation) 
    {
        GtkMenuItem *menu_item_g = (GtkMenuItem *)menu_item;
        gint32 allocation_g = (gint32) allocation;
        {
            gtk_menu_item_toggle_size_allocate (menu_item_g, allocation_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.MenuItem
     * Method:    gtk_menu_item_set_right_justified
     * Signature: (IZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_MenuItem_gtk_1menu_1item_1set_1right_1justified (JNIEnv 
        *env, jclass cls, jint menu_item, jboolean rightJustified) 
    {
        GtkMenuItem *menu_item_g = (GtkMenuItem *)menu_item;
        gboolean rightJustified_g = (gboolean) rightJustified;
        {
            gtk_menu_item_set_right_justified (menu_item_g, rightJustified_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.MenuItem
     * Method:    gtk_menu_item_get_right_justified
     * Signature: (I)Z
     */
    JNIEXPORT jboolean JNICALL Java_org_gnu_gtk_MenuItem_gtk_1menu_1item_1get_1right_1justified (
        JNIEnv *env, jclass cls, jint menu_item) 
    {
        GtkMenuItem *menu_item_g = (GtkMenuItem *)menu_item;
        {
            jboolean result_j = (jboolean) (gtk_menu_item_get_right_justified (menu_item_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gtk.MenuItem
     * Method:    gtk_menu_item_set_accel_path
     * Signature: (Ijava.lang.String;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_MenuItem_gtk_1menu_1item_1set_1accel_1path (JNIEnv 
        *env, jclass cls, jint menu_item, jstring accelPath) 
    {
        gchar* accelPath_g = (gchar*)(*env)->GetStringUTFChars(env, accelPath, 0);
        gtk_menu_item_set_accel_path ((GtkMenuItem*)menu_item, accelPath_g);
        if (accelPath) (*env)->ReleaseStringUTFChars(env, accelPath, accelPath_g);
    }

    /****************************************
     * END OF GENERATED CODE
     ****************************************/
#ifdef __cplusplus
}

#endif
