/*
 * 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
    JNIEXPORT void JNICALL 
    Java_org_gnu_gtk_CellRendererToggle_setActivatable (JNIEnv *env, jclass 
        cls, jint toggle, jboolean setting) 
    {
		GtkCellRendererToggle *toggle_g = (GtkCellRendererToggle *) toggle;
		toggle_g->activatable = setting;
	}
    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/
    /*
     * Class:     org.gnu.gtk.CellRendererToggle
     * Method:    gtk_cell_renderer_toggle_get_type
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL 
    Java_org_gnu_gtk_CellRendererToggle_gtk_1cell_1renderer_1toggle_1get_1type (JNIEnv *env, jclass 
        cls) 
    {
        {
            return (jint)gtk_cell_renderer_toggle_get_type ();
        }
    }

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

    /*
     * Class:     org.gnu.gtk.CellRendererToggle
     * Method:    gtk_cell_renderer_toggle_get_radio
     * Signature: (I)Z
     */
    JNIEXPORT jboolean JNICALL 
    Java_org_gnu_gtk_CellRendererToggle_gtk_1cell_1renderer_1toggle_1get_1radio (JNIEnv *env, 
        jclass cls, jint toggle) 
    {
        GtkCellRendererToggle *toggle_g = (GtkCellRendererToggle *)toggle;
        {
            jboolean result_j = (jboolean) (gtk_cell_renderer_toggle_get_radio (toggle_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gtk.CellRendererToggle
     * Method:    gtk_cell_renderer_toggle_set_radio
     * Signature: (IZ)V
     */
    JNIEXPORT void JNICALL 
    Java_org_gnu_gtk_CellRendererToggle_gtk_1cell_1renderer_1toggle_1set_1radio (JNIEnv *env, 
        jclass cls, jint toggle, jboolean radio) 
    {
        GtkCellRendererToggle *toggle_g = (GtkCellRendererToggle *)toggle;
        gboolean radio_g = (gboolean) radio;
        {
            gtk_cell_renderer_toggle_set_radio (toggle_g, radio_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.CellRendererToggle
     * Method:    gtk_cell_renderer_toggle_get_active
     * Signature: (I)Z
     */
    JNIEXPORT jboolean JNICALL 
    Java_org_gnu_gtk_CellRendererToggle_gtk_1cell_1renderer_1toggle_1get_1active (JNIEnv *env, 
        jclass cls, jint toggle) 
    {
        GtkCellRendererToggle *toggle_g = (GtkCellRendererToggle *)toggle;
        {
            jboolean result_j = (jboolean) (gtk_cell_renderer_toggle_get_active (toggle_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gtk.CellRendererToggle
     * Method:    gtk_cell_renderer_toggle_set_active
     * Signature: (IZ)V
     */
    JNIEXPORT void JNICALL 
    Java_org_gnu_gtk_CellRendererToggle_gtk_1cell_1renderer_1toggle_1set_1active (JNIEnv *env, 
        jclass cls, jint toggle, jboolean setting) 
    {
        GtkCellRendererToggle *toggle_g = (GtkCellRendererToggle *)toggle;
        gboolean setting_g = (gboolean) setting;
        {
            gtk_cell_renderer_toggle_set_active (toggle_g, setting_g);
        }
    }

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

#endif
