/*
 * 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
     ****************************************/
    GtkWidget * GtkFileSelection_get_dir_list (GtkFileSelection * cptr) 
    {
        return cptr->dir_list;
    }

    /*
     * Class:     org.gnu.gtk.FileSelection
     * Method:    getDirList
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_FileSelection_getDirList (JNIEnv *env, jclass cls, jint 
        cptr) 
    {
        GtkFileSelection *cptr_g = (GtkFileSelection *)cptr;
        {
            return (jint)GtkFileSelection_get_dir_list (cptr_g);
        }
    }

    GtkWidget * GtkFileSelection_get_file_list (GtkFileSelection * cptr) 
    {
        return cptr->file_list;
    }

    /*
     * Class:     org.gnu.gtk.FileSelection
     * Method:    getFileList
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_FileSelection_getFileList (JNIEnv *env, jclass cls, 
        jint cptr) 
    {
        GtkFileSelection *cptr_g = (GtkFileSelection *)cptr;
        {
            return (jint)GtkFileSelection_get_file_list (cptr_g);
        }
    }

    GtkWidget * GtkFileSelection_get_selection_entry (GtkFileSelection * cptr) 
    {
        return cptr->selection_entry;
    }

    /*
     * Class:     org.gnu.gtk.FileSelection
     * Method:    getSelectionEntry
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_FileSelection_getSelectionEntry (JNIEnv *env, jclass 
        cls, jint cptr) 
    {
        GtkFileSelection *cptr_g = (GtkFileSelection *)cptr;
        {
            return (jint)GtkFileSelection_get_selection_entry (cptr_g);
        }
    }

    GtkWidget * GtkFileSelection_get_selection_text (GtkFileSelection * cptr) 
    {
        return cptr->selection_text;
    }

    /*
     * Class:     org.gnu.gtk.FileSelection
     * Method:    getSelectionText
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_FileSelection_getSelectionText (JNIEnv *env, jclass 
        cls, jint cptr) 
    {
        GtkFileSelection *cptr_g = (GtkFileSelection *)cptr;
        {
            return (jint)GtkFileSelection_get_selection_text (cptr_g);
        }
    }

    GtkWidget * GtkFileSelection_get_main_vbox (GtkFileSelection * cptr) 
    {
        return cptr->main_vbox;
    }

    /*
     * Class:     org.gnu.gtk.FileSelection
     * Method:    getMainVbox
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_FileSelection_getMainVbox (JNIEnv *env, jclass cls, 
        jint cptr) 
    {
        GtkFileSelection *cptr_g = (GtkFileSelection *)cptr;
        {
            return (jint)GtkFileSelection_get_main_vbox (cptr_g);
        }
    }

    GtkButton * GtkFileSelection_get_ok_button (GtkFileSelection * cptr) 
    {
        return (GtkButton*)cptr->ok_button;
    }

    /*
     * Class:     org.gnu.gtk.FileSelection
     * Method:    getOkButton
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_FileSelection_getOkButton (JNIEnv *env, jclass cls, 
        jint cptr) 
    {
        GtkFileSelection *cptr_g = (GtkFileSelection *)cptr;
        {
            return (jint)GtkFileSelection_get_ok_button (cptr_g);
        }
    }

    GtkButton * GtkFileSelection_get_cancel_button (GtkFileSelection * cptr) 
    {
        return (GtkButton*)cptr->cancel_button;
    }

    /*
     * Class:     org.gnu.gtk.FileSelection
     * Method:    getCancelButton
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_FileSelection_getCancelButton (JNIEnv *env, jclass cls, 
        jint cptr) 
    {
        GtkFileSelection *cptr_g = (GtkFileSelection *)cptr;
        {
            return (jint)GtkFileSelection_get_cancel_button (cptr_g);
        }
    }

    GtkButton * GtkFileSelection_get_help_button (GtkFileSelection * cptr) 
    {
        return (GtkButton*)cptr->help_button;
    }

    /*
     * Class:     org.gnu.gtk.FileSelection
     * Method:    getHelpButton
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_FileSelection_getHelpButton (JNIEnv *env, jclass cls, 
        jint cptr) 
    {
        GtkFileSelection *cptr_g = (GtkFileSelection *)cptr;
        {
            return (jint)GtkFileSelection_get_help_button (cptr_g);
        }
    }

    GtkWidget * GtkFileSelection_get_history_pulldown (GtkFileSelection * cptr) 
    {
        return cptr->history_pulldown;
    }

    /*
     * Class:     org.gnu.gtk.FileSelection
     * Method:    getHistoryPulldown
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_FileSelection_getHistoryPulldown (JNIEnv *env, jclass 
        cls, jint cptr) 
    {
        GtkFileSelection *cptr_g = (GtkFileSelection *)cptr;
        {
            return (jint)GtkFileSelection_get_history_pulldown (cptr_g);
        }
    }

    GtkWidget * GtkFileSelection_get_history_menu (GtkFileSelection * cptr) 
    {
        return cptr->history_menu;
    }

    /*
     * Class:     org.gnu.gtk.FileSelection
     * Method:    getHistoryMenu
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_FileSelection_getHistoryMenu (JNIEnv *env, jclass cls, 
        jint cptr) 
    {
        GtkFileSelection *cptr_g = (GtkFileSelection *)cptr;
        {
            return (jint)GtkFileSelection_get_history_menu (cptr_g);
        }
    }

    GtkWidget * GtkFileSelection_get_button_area (GtkFileSelection * cptr) 
    {
        return cptr->button_area;
    }

    /*
     * Class:     org.gnu.gtk.FileSelection
     * Method:    getButtonArea
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_FileSelection_getButtonArea (JNIEnv *env, jclass cls, 
        jint cptr) 
    {
        GtkFileSelection *cptr_g = (GtkFileSelection *)cptr;
        {
            return (jint)GtkFileSelection_get_button_area (cptr_g);
        }
    }

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

    /*
     * Class:     org.gnu.gtk.FileSelection
     * Method:    gtk_file_selection_new
     * Signature: (java.lang.String;)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_FileSelection_gtk_1file_1selection_1new (JNIEnv *env, 
        jclass cls, jstring title) 
    {
        gchar* title_g = (gchar*)(*env)->GetStringUTFChars(env, title, 0);
        jint result = (jint)gtk_file_selection_new (title_g);
        (*env)->ReleaseStringUTFChars(env, title, title_g);
        return result;
    }

    /*
     * Class:     org.gnu.gtk.FileSelection
     * Method:    gtk_file_selection_set_filename
     * Signature: (Ijava.lang.String;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_FileSelection_gtk_1file_1selection_1set_1filename (
        JNIEnv *env, jclass cls, jint filesel, jstring filename) 
    {
        gchar* filename_g = (gchar*)(*env)->GetStringUTFChars(env, filename, 0);
        gtk_file_selection_set_filename ((GtkFileSelection*)filesel, filename_g);
        (*env)->ReleaseStringUTFChars(env, filename, filename_g);
    }

    /*
     * Class:     org.gnu.gtk.FileSelection
     * Method:    gtk_file_selection_get_filename
     * Signature: (I)java.lang.String;
     */
    JNIEXPORT jstring JNICALL Java_org_gnu_gtk_FileSelection_gtk_1file_1selection_1get_1filename (
        JNIEnv *env, jclass cls, jint filesel) 
    {
        gchar *result_g = (gchar*)gtk_file_selection_get_filename ((GtkFileSelection*)filesel);
        return (*env)->NewStringUTF(env, result_g);
    }

    /*
     * Class:     org.gnu.gtk.FileSelection
     * Method:    gtk_file_selection_complete
     * Signature: (Ijava.lang.String;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_FileSelection_gtk_1file_1selection_1complete (JNIEnv 
        *env, jclass cls, jint filesel, jstring pattern) 
    {
        gchar* pattern_g = (gchar*)(*env)->GetStringUTFChars(env, pattern, 0);
        gtk_file_selection_complete ((GtkFileSelection*)filesel, pattern_g);
        (*env)->ReleaseStringUTFChars(env, pattern, pattern_g);
    }

    /*
     * Class:     org.gnu.gtk.FileSelection
     * Method:    gtk_file_selection_show_fileop_buttons
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL 
    Java_org_gnu_gtk_FileSelection_gtk_1file_1selection_1show_1fileop_1buttons (JNIEnv *env, jclass 
        cls, jint filesel) 
    {
        gtk_file_selection_show_fileop_buttons ((GtkFileSelection*)filesel);
    }

    /*
     * Class:     org.gnu.gtk.FileSelection
     * Method:    gtk_file_selection_hide_fileop_buttons
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL 
    Java_org_gnu_gtk_FileSelection_gtk_1file_1selection_1hide_1fileop_1buttons (JNIEnv *env, jclass 
        cls, jint filesel) 
    {
        gtk_file_selection_hide_fileop_buttons ((GtkFileSelection*)filesel);
    }

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

#endif
