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

#include <jni.h>
#include <sys/types.h>
#include <gtk/gtk.h>
#ifdef __cplusplus
extern "C" 
{
#endif
    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/
    GtkBox * GtkDialog_get_vbox (GtkDialog * cptr) 
    {
        return (GtkBox*)cptr->vbox;
    }

    /*
     * Class:     org.gnu.gtk.Dialog
     * Method:    getVbox
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Dialog_getVbox (JNIEnv *env, jclass cls, jint cptr) 
    {
        GtkDialog *cptr_g = (GtkDialog *)cptr;
        {
            return (jint)GtkDialog_get_vbox (cptr_g);
        }
    }

    GtkBox * GtkDialog_get_action_area (GtkDialog * cptr) 
    {
        return (GtkBox*)cptr->action_area;
    }

    /*
     * Class:     org.gnu.gtk.Dialog
     * Method:    getActionArea
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Dialog_getActionArea (JNIEnv *env, jclass cls, jint 
        cptr) 
    {
        GtkDialog *cptr_g = (GtkDialog *)cptr;
        {
            return (jint)GtkDialog_get_action_area (cptr_g);
        }
    }

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

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


    /*
     * Class:     org.gnu.gtk.Dialog
     * Method:    gtk_dialog_add_action_widget
     * Signature: (III)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Dialog_gtk_1dialog_1add_1action_1widget (JNIEnv *env, 
        jclass cls, jint dialog, jint child, jint responseId) 
    {
        GtkDialog *dialog_g = (GtkDialog *)dialog;
        GtkWidget *child_g = (GtkWidget *)child;
        gint32 responseId_g = (gint32) responseId;
        {
            gtk_dialog_add_action_widget (dialog_g, child_g, responseId_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Dialog
     * Method:    gtk_dialog_add_button
     * Signature: (I[BI)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Dialog_gtk_1dialog_1add_1button (JNIEnv *env, jclass 
        cls, jint dialog, jstring buttonText, jint responseId) 
    {
        GtkDialog *dialog_g = (GtkDialog *)dialog;
        gint32 responseId_g = (gint32) responseId;
        const gchar* buttonText_g = (*env)->GetStringUTFChars(env, buttonText, NULL);
		jint retval =  (jint)gtk_dialog_add_button (dialog_g, buttonText_g, responseId_g);
		(*env)->ReleaseStringUTFChars( env, buttonText, buttonText_g );
		return retval;
    }

    /*
     * Class:     org.gnu.gtk.Dialog
     * Method:    gtk_dialog_set_response_sensitive
     * Signature: (IIZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Dialog_gtk_1dialog_1set_1response_1sensitive (JNIEnv 
        *env, jclass cls, jint dialog, jint responseId, jboolean setting) 
    {
        GtkDialog *dialog_g = (GtkDialog *)dialog;
        gint32 responseId_g = (gint32) responseId;
        gboolean setting_g = (gboolean) setting;
        {
            gtk_dialog_set_response_sensitive (dialog_g, responseId_g, setting_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Dialog
     * Method:    gtk_dialog_set_default_response
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Dialog_gtk_1dialog_1set_1default_1response (JNIEnv 
        *env, jclass cls, jint dialog, jint responseId) 
    {
        GtkDialog *dialog_g = (GtkDialog *)dialog;
        gint32 responseId_g = (gint32) responseId;
        {
            gtk_dialog_set_default_response (dialog_g, responseId_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Dialog
     * Method:    gtk_dialog_set_has_separator
     * Signature: (IZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Dialog_gtk_1dialog_1set_1has_1separator (JNIEnv *env, 
        jclass cls, jint dialog, jboolean setting) 
    {
        GtkDialog *dialog_g = (GtkDialog *)dialog;
        gboolean setting_g = (gboolean) setting;
        {
            gtk_dialog_set_has_separator (dialog_g, setting_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Dialog
     * Method:    gtk_dialog_get_has_separator
     * Signature: (I)Z
     */
    JNIEXPORT jboolean JNICALL Java_org_gnu_gtk_Dialog_gtk_1dialog_1get_1has_1separator (JNIEnv 
        *env, jclass cls, jint dialog) 
    {
        GtkDialog *dialog_g = (GtkDialog *)dialog;
        {
            jboolean result_j = (jboolean) (gtk_dialog_get_has_separator (dialog_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gtk.Dialog
     * Method:    gtk_dialog_response
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Dialog_gtk_1dialog_1response (JNIEnv *env, jclass cls, 
        jint dialog, jint responseId) 
    {
        GtkDialog *dialog_g = (GtkDialog *)dialog;
        gint32 responseId_g = (gint32) responseId;
        {
            gtk_dialog_response (dialog_g, responseId_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Dialog
     * Method:    gtk_dialog_run
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Dialog_gtk_1dialog_1run (JNIEnv *env, jclass cls, jint 
        dialog) 
    {
        GtkDialog *dialog_g = (GtkDialog *)dialog;
        {
            jint result_j = (jint) (gtk_dialog_run (dialog_g));
            return result_j;
        }
    }

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

#endif
