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

#include <jni.h>
#include <sys/types.h>
#include <gtk/gtk.h>
#ifdef __cplusplus
extern "C" 
{
#endif

    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/
    /*
     * Class:     org.gnu.gtk.TextTagTable
     * Method:    gtk_text_tag_table_get_type
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_TextTagTable_gtk_1text_1tag_1table_1get_1type (JNIEnv 
        *env, jclass cls) 
    {
        {
            return (jint)gtk_text_tag_table_get_type ();
        }
    }

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

    /*
     * Class:     org.gnu.gtk.TextTagTable
     * Method:    gtk_text_tag_table_add
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_TextTagTable_gtk_1text_1tag_1table_1add (JNIEnv *env, 
        jclass cls, jint table, jint tag) 
    {
        GtkTextTagTable *table_g = (GtkTextTagTable *)table;
        GtkTextTag *tag_g = (GtkTextTag *)tag;
        {
            gtk_text_tag_table_add (table_g, tag_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.TextTagTable
     * Method:    gtk_text_tag_table_remove
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_TextTagTable_gtk_1text_1tag_1table_1remove (JNIEnv 
        *env, jclass cls, jint table, jint tag) 
    {
        GtkTextTagTable *table_g = (GtkTextTagTable *)table;
        GtkTextTag *tag_g = (GtkTextTag *)tag;
        {
            gtk_text_tag_table_remove (table_g, tag_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.TextTagTable
     * Method:    gtk_text_tag_table_lookup
     * Signature: (I[B)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_TextTagTable_gtk_1text_1tag_1table_1lookup (JNIEnv 
        *env, jclass cls, jint table, jstring name) 
    {
        const char *name_utf = (*env)->GetStringUTFChars(env, name, NULL);
	GtkTextTag* tag_g = 
            gtk_text_tag_table_lookup ((GtkTextTagTable*)table, name_utf);
        (*env)->ReleaseStringUTFChars(env, name, name_utf);
	return (jint)tag_g;
    }

    /*
     * Class:     org.gnu.gtk.TextTagTable
     * Method:    gtk_text_tag_table_get_size
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_TextTagTable_gtk_1text_1tag_1table_1get_1size (JNIEnv 
        *env, jclass cls, jint table) 
    {
        GtkTextTagTable *table_g = (GtkTextTagTable *)table;
        {
            jint result_j = (jint) (gtk_text_tag_table_get_size (table_g));
            return result_j;
        }
    }

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

#endif
