/*
 * 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:19 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.ImageMenuItem
     * Method:    gtk_image_menu_item_get_type
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_ImageMenuItem_gtk_1image_1menu_1item_1get_1type (JNIEnv 
        *env, jclass cls) 
    {
        {
            return (jint)gtk_image_menu_item_get_type ();
        }
    }

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

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

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

    /*
     * Class:     org.gnu.gtk.ImageMenuItem
     * Method:    gtk_image_menu_item_new_from_stock
     * Signature: (java.lang.String;I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_ImageMenuItem_gtk_1image_1menu_1item_1new_1from_1stock (
        JNIEnv *env, jclass cls, jstring stockId, jint accelGroup) 
    {
        gchar* stockId_g = (gchar*)(*env)->GetStringUTFChars(env, stockId, 0);
        GtkAccelGroup *accelGroup_g = (GtkAccelGroup *)accelGroup;
        jint result = (jint)gtk_image_menu_item_new_from_stock (stockId_g, accelGroup_g);
        (*env)->ReleaseStringUTFChars(env, stockId, stockId_g);
        return result;
    }

    /*
     * Class:     org.gnu.gtk.ImageMenuItem
     * Method:    gtk_image_menu_item_set_image
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_ImageMenuItem_gtk_1image_1menu_1item_1set_1image (
        JNIEnv *env, jclass cls, jint image_menu_item, jint image) 
    {
        GtkImageMenuItem *image_menu_item_g = (GtkImageMenuItem *)image_menu_item;
        GtkWidget *image_g = (GtkWidget *)image;
        {
            gtk_image_menu_item_set_image (image_menu_item_g, image_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.ImageMenuItem
     * Method:    gtk_image_menu_item_get_image
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_ImageMenuItem_gtk_1image_1menu_1item_1get_1image (
        JNIEnv *env, jclass cls, jint image_menu_item) 
    {
        GtkImageMenuItem *image_menu_item_g = (GtkImageMenuItem *)image_menu_item;
        {
            return (jint)gtk_image_menu_item_get_image (image_menu_item_g);
        }
    }

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

#endif
