/*
 * 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:18 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.TreeSortable
     * Method:    gtk_tree_sortable_get_type
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_TreeSortable_gtk_1tree_1sortable_1get_1type (JNIEnv 
        *env, jclass cls) 
    {
        {
            return (jint)gtk_tree_sortable_get_type ();
        }
    }

    /*
     * Class:     org.gnu.gtk.TreeSortable
     * Method:    gtk_tree_sortable_sort_column_changed
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_TreeSortable_gtk_1tree_1sortable_1sort_1column_1changed (
        JNIEnv *env, jclass cls, jint sortable) 
    {
        GtkTreeSortable *sortable_g = (GtkTreeSortable *)sortable;
        {
            gtk_tree_sortable_sort_column_changed (sortable_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.TreeSortable
     * Method:    gtk_tree_sortable_get_sort_column_id
     * Signature: (I[Lint ;[Lint ;)Z
     */
    JNIEXPORT jboolean JNICALL 
    Java_org_gnu_gtk_TreeSortable_gtk_1tree_1sortable_1get_1sort_1column_1id (JNIEnv *env, jclass 
        cls, jint sortable, jintArray sortColumnId, jintArray order) 
    {
        GtkTreeSortable *sortable_g = (GtkTreeSortable *)sortable;
        gint *sortColumnId_g = (gint *) (*env)->GetIntArrayElements (env, sortColumnId, NULL);
        gint *order_g_g = (gint *) (*env)->GetIntArrayElements (env, order, NULL);
        GtkSortType *order_g = (GtkSortType *)order_g_g;
        {
            jboolean result_j = (jboolean) (gtk_tree_sortable_get_sort_column_id (sortable_g, 
                    sortColumnId_g, order_g));
            (*env)->ReleaseIntArrayElements (env, sortColumnId, (jint *) sortColumnId_g, 0);
            (*env)->ReleaseIntArrayElements (env, order, (jint*)order_g_g, 0);
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gtk.TreeSortable
     * Method:    gtk_tree_sortable_set_sort_column_id
     * Signature: (III)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_TreeSortable_gtk_1tree_1sortable_1set_1sort_1column_1id (
        JNIEnv *env, jclass cls, jint sortable, jint sortColumnID, jint order) 
    {
        GtkTreeSortable *sortable_g = (GtkTreeSortable *)sortable;
        gint32 sortColumnID_g = (gint32) sortColumnID;
        GtkSortType order_g = (GtkSortType) order;
        {
            gtk_tree_sortable_set_sort_column_id (sortable_g, sortColumnID_g, order_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.TreeSortable
     * Method:    gtk_tree_sortable_has_default_sort_func
     * Signature: (I)Z
     */
    JNIEXPORT jboolean JNICALL 
    Java_org_gnu_gtk_TreeSortable_gtk_1tree_1sortable_1has_1default_1sort_1func (JNIEnv *env, 
        jclass cls, jint sortable) 
    {
        GtkTreeSortable *sortable_g = (GtkTreeSortable *)sortable;
        {
            jboolean result_j = (jboolean) (gtk_tree_sortable_has_default_sort_func (sortable_g));
            return result_j;
        }
    }

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

#endif
