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

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

    /*
     * Class:     org.gnu.gnome.IconSelection
     * Method:    gnome_icon_selection_new
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_IconSelection_gnome_1icon_1selection_1new (JNIEnv 
        *env, jclass cls) 
    {
        {
            return (jint)gnome_icon_selection_new ();
        }
    }

    /*
     * Class:     org.gnu.gnome.IconSelection
     * Method:    gnome_icon_selection_add_defaults
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_IconSelection_gnome_1icon_1selection_1add_1defaults (
        JNIEnv *env, jclass cls, jint gis) 
    {
        GnomeIconSelection *gis_g = (GnomeIconSelection *)gis;
        {
            gnome_icon_selection_add_defaults (gis_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.IconSelection
     * Method:    gnome_icon_selection_add_directory
     * Signature: (Ijava.lang.String;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_IconSelection_gnome_1icon_1selection_1add_1directory (
        JNIEnv *env, jclass cls, jint gis, jstring dir) 
    {
        gchar* dir_g = (gchar*)(*env)->GetStringUTFChars(env, dir, 0);
        gnome_icon_selection_add_directory ((GnomeIconSelection*)gis, dir_g);
        if (dir) (*env)->ReleaseStringUTFChars(env, dir, dir_g);
    }

    /*
     * Class:     org.gnu.gnome.IconSelection
     * Method:    gnome_icon_selection_show_icons
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_IconSelection_gnome_1icon_1selection_1show_1icons (
        JNIEnv *env, jclass cls, jint gis) 
    {
        GnomeIconSelection *gis_g = (GnomeIconSelection *)gis;
        {
            gnome_icon_selection_show_icons (gis_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.IconSelection
     * Method:    gnome_icon_selection_clear
     * Signature: (IZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_IconSelection_gnome_1icon_1selection_1clear (JNIEnv 
        *env, jclass cls, jint gis, jboolean notShown) 
    {
        GnomeIconSelection *gis_g = (GnomeIconSelection *)gis;
        gboolean notShown_g = (gboolean) notShown;
        {
            gnome_icon_selection_clear (gis_g, notShown_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.IconSelection
     * Method:    gnome_icon_selection_get_icon
     * Signature: (IZ)java.lang.String;
     */
    JNIEXPORT jstring JNICALL Java_org_gnu_gnome_IconSelection_gnome_1icon_1selection_1get_1icon (
        JNIEnv *env, jclass cls, jint gis, jboolean fullPath) 
    {
        gchar *result_g = (gchar*)gnome_icon_selection_get_icon ((GnomeIconSelection*)gis, (gboolean)fullPath);
        return (*env)->NewStringUTF(env, result_g);
    }

    /*
     * Class:     org.gnu.gnome.IconSelection
     * Method:    gnome_icon_selection_select_icon
     * Signature: (Ijava.lang.String;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_IconSelection_gnome_1icon_1selection_1select_1icon (
        JNIEnv *env, jclass cls, jint gis, jstring filename) 
    {
        gchar* filename_g = (gchar*)(*env)->GetStringUTFChars(env, filename, 0);
        gnome_icon_selection_select_icon ((GnomeIconSelection*)gis, filename_g);
        if (filename) (*env)->ReleaseStringUTFChars(env, filename, filename_g);
    }

    /*
     * Class:     org.gnu.gnome.IconSelection
     * Method:    gnome_icon_selection_stop_loading
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_IconSelection_gnome_1icon_1selection_1stop_1loading (
        JNIEnv *env, jclass cls, jint gis) 
    {
        GnomeIconSelection *gis_g = (GnomeIconSelection *)gis;
        {
            gnome_icon_selection_stop_loading (gis_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.IconSelection
     * Method:    gnome_icon_selection_get_gil
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_IconSelection_gnome_1icon_1selection_1get_1gil (
        JNIEnv *env, jclass cls, jint gis) 
    {
        GnomeIconSelection *gis_g = (GnomeIconSelection *)gis;
        {
            return (jint)gnome_icon_selection_get_gil (gis_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.IconSelection
     * Method:    gnome_icon_selection_get_box
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_IconSelection_gnome_1icon_1selection_1get_1box (
        JNIEnv *env, jclass cls, jint gis) 
    {
        GnomeIconSelection *gis_g = (GnomeIconSelection *)gis;
        {
            return (jint)gnome_icon_selection_get_box (gis_g);
        }
    }

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

#endif
