/*
 * 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-08 10:21:56 EDT
 */

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

    /*
     * Class:     org.gnu.gnome.IconEntry
     * Method:    gnome_icon_entry_new
     * Signature: (java.lang.String;java.lang.String;)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_IconEntry_gnome_1icon_1entry_1new (JNIEnv *env, 
        jclass cls, jstring historyId, jstring browserDialogTitle) 
    {
        gchar* historyId_g = (gchar*)(*env)->GetStringUTFChars(env, historyId, 0);
        gchar* browserDialogTitle_g = (gchar*)(*env)->GetStringUTFChars(env, browserDialogTitle, 0);
        jint result = (jint)gnome_icon_entry_new (historyId_g, browserDialogTitle_g);
        if (historyId) (*env)->ReleaseStringUTFChars(env, historyId, historyId_g);
        if (browserDialogTitle) (*env)->ReleaseStringUTFChars(env, browserDialogTitle, browserDialogTitle_g);
        return result;
    }

    /*
     * Class:     org.gnu.gnome.IconEntry
     * Method:    gnome_icon_entry_set_pixmap_subdir
     * Signature: (Ijava.lang.String;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_IconEntry_gnome_1icon_1entry_1set_1pixmap_1subdir (
        JNIEnv *env, jclass cls, jint ientry, jstring subdir) 
    {
        gchar* subdir_g = (gchar*)(*env)->GetStringUTFChars(env, subdir, 0);
        gnome_icon_entry_set_pixmap_subdir ((GnomeIconEntry*)ientry, subdir_g);
        if (subdir) (*env)->ReleaseStringUTFChars(env, subdir, subdir_g);
    }

    /*
     * Class:     org.gnu.gnome.IconEntry
     * Method:    gnome_icon_entry_get_filename
     * Signature: (I)java.lang.String;
     */
    JNIEXPORT jstring JNICALL Java_org_gnu_gnome_IconEntry_gnome_1icon_1entry_1get_1filename (
        JNIEnv *env, jclass cls, jint ientry) 
    {
        gchar *result_g = (gchar*)gnome_icon_entry_get_filename ((GnomeIconEntry*)ientry);
        return (*env)->NewStringUTF(env, result_g);
    }

    /*
     * Class:     org.gnu.gnome.IconEntry
     * Method:    gnome_icon_entry_set_filename
     * Signature: (Ijava.lang.String;)Z
     */
    JNIEXPORT jboolean JNICALL Java_org_gnu_gnome_IconEntry_gnome_1icon_1entry_1set_1filename (
        JNIEnv *env, jclass cls, jint ientry, jstring filename) 
    {
        gchar* filename_g = (gchar*)(*env)->GetStringUTFChars(env, filename, 0);
        jboolean result_j = (jboolean) (gnome_icon_entry_set_filename((GnomeIconEntry*)ientry, filename_g));
        if (filename) (*env)->ReleaseStringUTFChars(env, filename, filename_g);
        return result_j;
    }

    /*
     * Class:     org.gnu.gnome.IconEntry
     * Method:    gnome_icon_entry_set_browse_dialog_title
     * Signature: (Ijava.lang.String;)V
     */
    JNIEXPORT void JNICALL 
    Java_org_gnu_gnome_IconEntry_gnome_1icon_1entry_1set_1browse_1dialog_1title (JNIEnv *env, 
        jclass cls, jint ientry, jstring browseDialogTitle) 
    {
        gchar* browseDialogTitle_g = (gchar*)(*env)->GetStringUTFChars(env, browseDialogTitle, 0);
        gnome_icon_entry_set_browse_dialog_title ((GnomeIconEntry*)ientry, browseDialogTitle_g);
        if (browseDialogTitle) (*env)->ReleaseStringUTFChars(env, browseDialogTitle, browseDialogTitle_g);
    }

    /*
     * Class:     org.gnu.gnome.IconEntry
     * Method:    gnome_icon_entry_set_history_id
     * Signature: (Ijava.lang.String;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_IconEntry_gnome_1icon_1entry_1set_1history_1id (
        JNIEnv *env, jclass cls, jint ientry, jstring historyId) 
    {
        gchar* historyId_g = (gchar*)(*env)->GetStringUTFChars(env, historyId, 0);
        gnome_icon_entry_set_history_id ((GnomeIconEntry*)ientry, historyId_g);
        if (historyId) (*env)->ReleaseStringUTFChars(env, historyId, historyId_g);
    }

    /*
     * Class:     org.gnu.gnome.IconEntry
     * Method:    gnome_icon_entry_pick_dialog
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_IconEntry_gnome_1icon_1entry_1pick_1dialog (JNIEnv 
        *env, jclass cls, jint ientry) 
    {
        GnomeIconEntry *ientry_g = (GnomeIconEntry *)ientry;
        {
            return (jint)gnome_icon_entry_pick_dialog (ientry_g);
        }
    }

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

/*
 * Class:     org_gnu_gnome_IconEntry
 * Method:    gnome_icon_entry_set_max_saved
 * Signature: (II)V
 */
JNIEXPORT void JNICALL Java_org_gnu_gnome_IconEntry_gnome_1icon_1entry_1set_1max_1saved
  (JNIEnv *env, jclass cls, jint ientry, jint max)
{
	gnome_icon_entry_set_max_saved((GnomeIconEntry*)ientry, (guint)max);
}

#ifdef __cplusplus
}

#endif
