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

#include <jni.h>
#include <sys/types.h>
#include <gtk/gtk.h>
#ifdef __cplusplus
extern "C" 
{
#endif
    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/
    GtkColorSelection * GtkColorSelectionDialog_get_colorsel (GtkColorSelectionDialog * cptr) 
    {
        return (GtkColorSelection*)cptr->colorsel;
    }

    /*
     * Class:     org.gnu.gtk.ColorSelectionDialog
     * Method:    getColorsel
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_ColorSelectionDialog_getColorsel (JNIEnv *env, jclass 
        cls, jint cptr) 
    {
        GtkColorSelectionDialog *cptr_g = (GtkColorSelectionDialog *)cptr;
        {
            return (jint)GtkColorSelectionDialog_get_colorsel (cptr_g);
        }
    }

    GtkButton * GtkColorSelectionDialog_get_ok_button (GtkColorSelectionDialog * cptr) 
    {
        return (GtkButton*)cptr->ok_button;
    }

    /*
     * Class:     org.gnu.gtk.ColorSelectionDialog
     * Method:    getOkButton
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_ColorSelectionDialog_getOkButton (JNIEnv *env, jclass 
        cls, jint cptr) 
    {
        GtkColorSelectionDialog *cptr_g = (GtkColorSelectionDialog *)cptr;
        {
            return (jint)GtkColorSelectionDialog_get_ok_button (cptr_g);
        }
    }

    GtkButton * GtkColorSelectionDialog_get_cancel_button (GtkColorSelectionDialog * cptr) 
    {
        return (GtkButton*)cptr->cancel_button;
    }

    /*
     * Class:     org.gnu.gtk.ColorSelectionDialog
     * Method:    getCancelButton
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_ColorSelectionDialog_getCancelButton (JNIEnv *env, 
        jclass cls, jint cptr) 
    {
        GtkColorSelectionDialog *cptr_g = (GtkColorSelectionDialog *)cptr;
        {
            return (jint)GtkColorSelectionDialog_get_cancel_button (cptr_g);
        }
    }

    GtkButton * GtkColorSelectionDialog_get_help_button (GtkColorSelectionDialog * cptr) 
    {
        return (GtkButton*)cptr->help_button;
    }

    /*
     * Class:     org.gnu.gtk.ColorSelectionDialog
     * Method:    getHelpButton
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_ColorSelectionDialog_getHelpButton (JNIEnv *env, jclass 
        cls, jint cptr) 
    {
        GtkColorSelectionDialog *cptr_g = (GtkColorSelectionDialog *)cptr;
        {
            return (jint)GtkColorSelectionDialog_get_help_button (cptr_g);
        }
    }

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

    /*
     * Class:     org.gnu.gtk.ColorSelectionDialog
     * Method:    gtk_color_selection_dialog_new
     * Signature: (java.lang.String;)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_ColorSelectionDialog_gtk_1color_1selection_1dialog_1new (
        JNIEnv *env, jclass cls, jbyteArray title) 
    {
        gchar* title_g = (gchar*)(*env)->GetStringUTFChars(env, title, 0);
        jint hndl = (jint)gtk_color_selection_dialog_new (title_g);
        (*env)->ReleaseStringUTFChars(env, title, title_g);
        return hndl;
    }

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

#endif
