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

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

    /*
     * Class:     org.gnu.gnome.IconList
     * Method:    gnome_icon_list_new
     * Signature: (III)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_IconList_gnome_1icon_1list_1new (JNIEnv *env, jclass 
        cls, jint iconWidth, jint adj, jint flags) 
    {
        gint32 iconWidth_g = (gint32) iconWidth;
        GtkAdjustment *adj_g = (GtkAdjustment *)adj;
        gint32 flags_g = (gint32) flags;
        {
            return (jint)gnome_icon_list_new (iconWidth_g, adj_g, flags_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.IconList
     * Method:    gnome_icon_list_set_hadjustment
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_IconList_gnome_1icon_1list_1set_1hadjustment (JNIEnv 
        *env, jclass cls, jint gil, jint hadj) 
    {
        GnomeIconList *gil_g = (GnomeIconList *)gil;
        GtkAdjustment *hadj_g = (GtkAdjustment *)hadj;
        {
            gnome_icon_list_set_hadjustment (gil_g, hadj_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.IconList
     * Method:    gnome_icon_list_set_vadjustment
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_IconList_gnome_1icon_1list_1set_1vadjustment (JNIEnv 
        *env, jclass cls, jint gil, jint vadj) 
    {
        GnomeIconList *gil_g = (GnomeIconList *)gil;
        GtkAdjustment *vadj_g = (GtkAdjustment *)vadj;
        {
            gnome_icon_list_set_vadjustment (gil_g, vadj_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.IconList
     * Method:    gnome_icon_list_freeze
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_IconList_gnome_1icon_1list_1freeze (JNIEnv *env, 
        jclass cls, jint gil) 
    {
        GnomeIconList *gil_g = (GnomeIconList *)gil;
        {
            gnome_icon_list_freeze (gil_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.IconList
     * Method:    gnome_icon_list_thaw
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_IconList_gnome_1icon_1list_1thaw (JNIEnv *env, jclass 
        cls, jint gil) 
    {
        GnomeIconList *gil_g = (GnomeIconList *)gil;
        {
            gnome_icon_list_thaw (gil_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.IconList
     * Method:    gnome_icon_list_insert
     * Signature: (IIjava.lang.String;java.lang.String;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_IconList_gnome_1icon_1list_1insert (JNIEnv *env, 
        jclass cls, jint gil, jint idx, jstring iconFilename, jstring text) 
    {
        gchar* iconFilename_g = (gchar*)(*env)->GetStringUTFChars(env, iconFilename, 0);
        gchar* text_g = (gchar*)(*env)->GetStringUTFChars(env, text, 0);
        gnome_icon_list_insert ((GnomeIconList*)gil, (gint32)idx, iconFilename_g, text_g);
        if (iconFilename) (*env)->ReleaseStringUTFChars(env, iconFilename, iconFilename_g);
        if (text) (*env)->ReleaseStringUTFChars(env, text, text_g);
    }

    /*
     * Class:     org.gnu.gnome.IconList
     * Method:    gnome_icon_list_insert_pixbuf
     * Signature: (IIIjava.lang.String;java.lang.String;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_IconList_gnome_1icon_1list_1insert_1pixbuf (JNIEnv 
        *env, jclass cls, jint gil, jint idx, jint im, jstring iconFilename, jstring text) 
    {
        gchar* iconFilename_g = (gchar*)(*env)->GetStringUTFChars(env, iconFilename, 0);
        gchar* text_g = (gchar*)(*env)->GetStringUTFChars(env, text, 0);
        gnome_icon_list_insert_pixbuf ((GnomeIconList*)gil, (gint32)idx, (GdkPixbuf*)im, iconFilename_g, text_g);
        if (iconFilename) (*env)->ReleaseStringUTFChars(env, iconFilename, iconFilename_g);
        if (text) (*env)->ReleaseStringUTFChars(env, text, text_g);
    }

    /*
     * Class:     org.gnu.gnome.IconList
     * Method:    gnome_icon_list_append
     * Signature: (Ijava.lang.String;java.lang.String;)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_IconList_gnome_1icon_1list_1append (JNIEnv *env, 
        jclass cls, jint gil, jstring iconFilename, jstring text) 
    {
        gchar* iconFilename_g = (gchar*)(*env)->GetStringUTFChars(env, iconFilename, 0);
        gchar* text_g = (gchar*)(*env)->GetStringUTFChars(env, text, 0);
        jint result_j = (jint) (gnome_icon_list_append ((GnomeIconList*)gil, iconFilename_g, text_g));
        if (iconFilename) (*env)->ReleaseStringUTFChars(env, iconFilename, iconFilename_g);
        if (text) (*env)->ReleaseStringUTFChars(env, text, text_g);
        return result_j;
    }

    /*
     * Class:     org.gnu.gnome.IconList
     * Method:    gnome_icon_list_append_pixbuf
     * Signature: (IIjava.lang.String;java.lang.String;)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_IconList_gnome_1icon_1list_1append_1pixbuf (JNIEnv 
        *env, jclass cls, jint gil, jint im, jstring iconFilename, jstring text) 
    {
        gchar* iconFilename_g = (gchar*)(*env)->GetStringUTFChars(env, iconFilename, 0);
        gchar* text_g = (gchar*)(*env)->GetStringUTFChars(env, text, 0);
        jint result_j = (jint) (gnome_icon_list_append_pixbuf ((GnomeIconList*)gil, (GdkPixbuf*)im, iconFilename_g, text_g));
        if (iconFilename) (*env)->ReleaseStringUTFChars(env, iconFilename, iconFilename_g);
        if (text) (*env)->ReleaseStringUTFChars(env, text, text_g);
        return result_j;
    }

    /*
     * Class:     org.gnu.gnome.IconList
     * Method:    gnome_icon_list_clear
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_IconList_gnome_1icon_1list_1clear (JNIEnv *env, 
        jclass cls, jint gil) 
    {
        GnomeIconList *gil_g = (GnomeIconList *)gil;
        {
            gnome_icon_list_clear (gil_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.IconList
     * Method:    gnome_icon_list_remove
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_IconList_gnome_1icon_1list_1remove (JNIEnv *env, 
        jclass cls, jint gil, jint idx) 
    {
        GnomeIconList *gil_g = (GnomeIconList *)gil;
        gint32 idx_g = (gint32) idx;
        {
            gnome_icon_list_remove (gil_g, idx_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.IconList
     * Method:    gnome_icon_list_get_num_icons
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_IconList_gnome_1icon_1list_1get_1num_1icons (JNIEnv 
        *env, jclass cls, jint gil) 
    {
        GnomeIconList *gil_g = (GnomeIconList *)gil;
        {
            jint result_j = (jint) (gnome_icon_list_get_num_icons (gil_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gnome.IconList
     * Method:    gnome_icon_list_get_selection_mode
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_IconList_gnome_1icon_1list_1get_1selection_1mode (
        JNIEnv *env, jclass cls, jint gil) 
    {
        GnomeIconList *gil_g = (GnomeIconList *)gil;
        {
            jint result_j = (jint) (gnome_icon_list_get_selection_mode (gil_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gnome.IconList
     * Method:    gnome_icon_list_set_selection_mode
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_IconList_gnome_1icon_1list_1set_1selection_1mode (
        JNIEnv *env, jclass cls, jint gil, jint mode) 
    {
        GnomeIconList *gil_g = (GnomeIconList *)gil;
        GtkSelectionMode mode_g = (GtkSelectionMode) mode;
        {
            gnome_icon_list_set_selection_mode (gil_g, mode_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.IconList
     * Method:    gnome_icon_list_select_icon
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_IconList_gnome_1icon_1list_1select_1icon (JNIEnv 
        *env, jclass cls, jint gil, jint idx) 
    {
        GnomeIconList *gil_g = (GnomeIconList *)gil;
        gint32 idx_g = (gint32) idx;
        {
            gnome_icon_list_select_icon (gil_g, idx_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.IconList
     * Method:    gnome_icon_list_unselect_icon
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_IconList_gnome_1icon_1list_1unselect_1icon (JNIEnv 
        *env, jclass cls, jint gil, jint idx) 
    {
        GnomeIconList *gil_g = (GnomeIconList *)gil;
        gint32 idx_g = (gint32) idx;
        {
            gnome_icon_list_unselect_icon (gil_g, idx_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.IconList
     * Method:    gnome_icon_list_unselect_all
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_IconList_gnome_1icon_1list_1unselect_1all (JNIEnv 
        *env, jclass cls, jint gil) 
    {
        GnomeIconList *gil_g = (GnomeIconList *)gil;
        {
            jint result_j = (jint) (gnome_icon_list_unselect_all (gil_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gnome.IconList
     * Method:    gnome_icon_list_get_selection
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_IconList_gnome_1icon_1list_1get_1selection (JNIEnv 
        *env, jclass cls, jint gil) 
    {
        GnomeIconList *gil_g = (GnomeIconList *)gil;
        {
            return (jint)gnome_icon_list_get_selection (gil_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.IconList
     * Method:    gnome_icon_list_focus_icon
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_IconList_gnome_1icon_1list_1focus_1icon (JNIEnv *env, 
        jclass cls, jint gil, jint idx) 
    {
        GnomeIconList *gil_g = (GnomeIconList *)gil;
        gint32 idx_g = (gint32) idx;
        {
            gnome_icon_list_focus_icon (gil_g, idx_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.IconList
     * Method:    gnome_icon_list_set_icon_width
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_IconList_gnome_1icon_1list_1set_1icon_1width (JNIEnv 
        *env, jclass cls, jint gil, jint w) 
    {
        GnomeIconList *gil_g = (GnomeIconList *)gil;
        gint32 w_g = (gint32) w;
        {
            gnome_icon_list_set_icon_width (gil_g, w_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.IconList
     * Method:    gnome_icon_list_set_row_spacing
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_IconList_gnome_1icon_1list_1set_1row_1spacing (JNIEnv 
        *env, jclass cls, jint gil, jint pixels) 
    {
        GnomeIconList *gil_g = (GnomeIconList *)gil;
        gint32 pixels_g = (gint32) pixels;
        {
            gnome_icon_list_set_row_spacing (gil_g, pixels_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.IconList
     * Method:    gnome_icon_list_set_col_spacing
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_IconList_gnome_1icon_1list_1set_1col_1spacing (JNIEnv 
        *env, jclass cls, jint gil, jint pixels) 
    {
        GnomeIconList *gil_g = (GnomeIconList *)gil;
        gint32 pixels_g = (gint32) pixels;
        {
            gnome_icon_list_set_col_spacing (gil_g, pixels_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.IconList
     * Method:    gnome_icon_list_set_text_spacing
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_IconList_gnome_1icon_1list_1set_1text_1spacing (
        JNIEnv *env, jclass cls, jint gil, jint pixels) 
    {
        GnomeIconList *gil_g = (GnomeIconList *)gil;
        gint32 pixels_g = (gint32) pixels;
        {
            gnome_icon_list_set_text_spacing (gil_g, pixels_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.IconList
     * Method:    gnome_icon_list_set_icon_border
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_IconList_gnome_1icon_1list_1set_1icon_1border (JNIEnv 
        *env, jclass cls, jint gil, jint pixels) 
    {
        GnomeIconList *gil_g = (GnomeIconList *)gil;
        gint32 pixels_g = (gint32) pixels;
        {
            gnome_icon_list_set_icon_border (gil_g, pixels_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.IconList
     * Method:    gnome_icon_list_set_separators
     * Signature: (Ijava.lang.String;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_IconList_gnome_1icon_1list_1set_1separators (JNIEnv 
        *env, jclass cls, jint gil, jstring sep) 
    {
        gchar* sep_g = (gchar*)(*env)->GetStringUTFChars(env, sep, 0);
        gnome_icon_list_set_separators ((GnomeIconList*)gil, sep_g);
        if (sep) (*env)->ReleaseStringUTFChars(env, sep, sep_g);
    }

    /*
     * Class:     org.gnu.gnome.IconList
     * Method:    gnome_icon_list_get_icon_filename
     * Signature: (II)java.lang.String;
     */
    JNIEXPORT jstring JNICALL Java_org_gnu_gnome_IconList_gnome_1icon_1list_1get_1icon_1filename (
        JNIEnv *env, jclass cls, jint gil, jint idx) 
    {
        gchar *result_g = (gchar*)gnome_icon_list_get_icon_filename ((GnomeIconList*)gil, (gint32)idx);
        return (*env)->NewStringUTF(env, result_g);
    }

    /*
     * Class:     org.gnu.gnome.IconList
     * Method:    gnome_icon_list_find_icon_from_filename
     * Signature: (Ijava.lang.String;)I
     */
    JNIEXPORT jint JNICALL 
    Java_org_gnu_gnome_IconList_gnome_1icon_1list_1find_1icon_1from_1filename (JNIEnv *env, jclass 
        cls, jint gil, jstring filename) 
    {
        gchar* filename_g = (gchar*)(*env)->GetStringUTFChars(env, filename, 0);
        jint result_j = (jint) (gnome_icon_list_find_icon_from_filename ((GnomeIconList*)gil, filename_g));
        if (filename) (*env)->ReleaseStringUTFChars(env, filename, filename_g);
        return result_j;
    }

    /*
     * Class:     org.gnu.gnome.IconList
     * Method:    gnome_icon_list_moveto
     * Signature: (IID)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_IconList_gnome_1icon_1list_1moveto (JNIEnv *env, 
        jclass cls, jint gil, jint idx, jdouble yalign) 
    {
        GnomeIconList *gil_g = (GnomeIconList *)gil;
        gint32 idx_g = (gint32) idx;
        gdouble yalign_g = (gdouble) yalign;
        {
            gnome_icon_list_moveto (gil_g, idx_g, yalign_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.IconList
     * Method:    gnome_icon_list_icon_is_visible
     * Signature: (II)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_IconList_gnome_1icon_1list_1icon_1is_1visible (JNIEnv 
        *env, jclass cls, jint gil, jint idx) 
    {
        GnomeIconList *gil_g = (GnomeIconList *)gil;
        gint32 idx_g = (gint32) idx;
        {
            jint result_j = (jint) (gnome_icon_list_icon_is_visible (gil_g, idx_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gnome.IconList
     * Method:    gnome_icon_list_get_icon_at
     * Signature: (III)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_IconList_gnome_1icon_1list_1get_1icon_1at (JNIEnv 
        *env, jclass cls, jint gil, jint x, jint y) 
    {
        GnomeIconList *gil_g = (GnomeIconList *)gil;
        gint32 x_g = (gint32) x;
        gint32 y_g = (gint32) y;
        {
            jint result_j = (jint) (gnome_icon_list_get_icon_at (gil_g, x_g, y_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gnome.IconList
     * Method:    gnome_icon_list_get_items_per_line
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_IconList_gnome_1icon_1list_1get_1items_1per_1line (
        JNIEnv *env, jclass cls, jint gil) 
    {
        GnomeIconList *gil_g = (GnomeIconList *)gil;
        {
            jint result_j = (jint) (gnome_icon_list_get_items_per_line (gil_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gnome.IconList
     * Method:    gnome_icon_list_get_icon_text_item
     * Signature: (II)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_IconList_gnome_1icon_1list_1get_1icon_1text_1item (
        JNIEnv *env, jclass cls, jint gil, jint idx) 
    {
        GnomeIconList *gil_g = (GnomeIconList *)gil;
        gint32 idx_g = (gint32) idx;
        {
            return (jint)gnome_icon_list_get_icon_text_item (gil_g, idx_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.IconList
     * Method:    gnome_icon_list_get_icon_pixbuf_item
     * Signature: (II)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_IconList_gnome_1icon_1list_1get_1icon_1pixbuf_1item (
        JNIEnv *env, jclass cls, jint gil, jint idx) 
    {
        GnomeIconList *gil_g = (GnomeIconList *)gil;
        gint32 idx_g = (gint32) idx;
        {
            return (jint)gnome_icon_list_get_icon_pixbuf_item (gil_g, idx_g);
        }
    }

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

#endif
