/*
 * 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:27 EDT
 */

#include <jni.h>
#include <sys/types.h>
#include <gtk/gtk.h>
#ifdef __cplusplus
extern "C" 
{
#endif
    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/
     GtkEntry * GtkCombo_get_entry (GtkCombo * cptr)
    {
        return (GtkEntry*)cptr->entry;
    }

    /*
     * Class:     org.gnu.gtk.Combo
     * Method:    getEntry
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Combo_getEntry (JNIEnv *env, jclass
cls, jint cptr)
    {
        GtkCombo *cptr_g = (GtkCombo *)cptr;
        {
            return (jint)GtkCombo_get_entry (cptr_g);
        }
    }

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

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

    /*
     * Class:     org.gnu.gtk.Combo
     * Method:    gtk_combo_set_value_in_list
     * Signature: (IZZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Combo_gtk_1combo_1set_1value_1in_1list (JNIEnv *env, 
        jclass cls, jint combo, jboolean val, jboolean okIfEmpty) 
    {
        GtkCombo *combo_g = (GtkCombo *)combo;
        gboolean val_g = (gboolean) val;
        gboolean okIfEmpty_g = (gboolean) okIfEmpty;
        {
            gtk_combo_set_value_in_list (combo_g, val_g, okIfEmpty_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Combo
     * Method:    gtk_combo_set_use_arrows
     * Signature: (IZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Combo_gtk_1combo_1set_1use_1arrows (JNIEnv *env, jclass 
        cls, jint combo, jboolean val) 
    {
        GtkCombo *combo_g = (GtkCombo *)combo;
        gboolean val_g = (gboolean) val;
        {
            gtk_combo_set_use_arrows (combo_g, val_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Combo
     * Method:    gtk_combo_set_use_arrows_always
     * Signature: (IZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Combo_gtk_1combo_1set_1use_1arrows_1always (JNIEnv 
        *env, jclass cls, jint combo, jboolean val) 
    {
        GtkCombo *combo_g = (GtkCombo *)combo;
        gboolean val_g = (gboolean) val;
        {
            gtk_combo_set_use_arrows_always (combo_g, val_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Combo
     * Method:    gtk_combo_set_case_sensitive
     * Signature: (IZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Combo_gtk_1combo_1set_1case_1sensitive (JNIEnv *env, 
        jclass cls, jint combo, jboolean val) 
    {
        GtkCombo *combo_g = (GtkCombo *)combo;
        gboolean val_g = (gboolean) val;
        {
            gtk_combo_set_case_sensitive (combo_g, val_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Combo
     * Method:    gtk_combo_set_item_string
     * Signature: (II[B)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Combo_gtk_1combo_1set_1item_1string (JNIEnv *env, 
        jclass cls, jint combo, jint item, jstring itemValue) 
    {
        GtkCombo *combo_g = (GtkCombo *)combo;
        GtkItem *item_g = (GtkItem *)item;
        const gchar* itemValue_g = (*env)->GetStringUTFChars(env, itemValue, NULL);
		gtk_combo_set_item_string (combo_g, item_g, itemValue_g);
		(*env)->ReleaseStringUTFChars(env, itemValue, itemValue_g );
    }

    /*
     * Class:     org.gnu.gtk.Combo
     * Method:    gtk_combo_set_popdown_strings
     * Signature: (ILorg/gnu/glib/GListString;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Combo_gtk_1combo_1set_1popdown_1strings (JNIEnv *env, 
        jclass cls, jint combo, jint strings) 
    {
        GtkCombo *combo_g = (GtkCombo *)combo;
        gtk_combo_set_popdown_strings (combo_g, (GList*)strings);
    }

    /*
     * Class:     org.gnu.gtk.Combo
     * Method:    gtk_combo_disable_activate
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Combo_gtk_1combo_1disable_1activate (JNIEnv *env, 
        jclass cls, jint combo) 
    {
        GtkCombo *combo_g = (GtkCombo *)combo;
        gtk_combo_disable_activate (combo_g);
    }

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

#endif
