/*
 * 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-08 10:21:59 EDT
 */

#include <jni.h>
#include <sys/types.h>
#include <gnome.h>
#ifdef __cplusplus
extern "C" 
{
#endif
    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/
    /*
     * Class:     org.gnu.gnome.Scores
     * Method:    gnome_scores_get_type
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_Scores_gnome_1scores_1get_1type (JNIEnv *env, jclass 
        cls) 
    {
        {
            return (jint)gnome_scores_get_type ();
        }
    }

    /*
     * Class:     org.gnu.gnome.Scores
     * Method:    gnome_scores_display
     * Signature: (java.lang.String;java.lang.String;java.lang.String;I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_Scores_gnome_1scores_1display (JNIEnv *env, jclass 
        cls, jstring title, jstring app_name, jstring level, jint pos) 
    {
        gchar* title_g = (gchar*)(*env)->GetStringUTFChars(env, title, 0);
        gchar* app_name_g = (gchar*)(*env)->GetStringUTFChars(env, app_name, 0);
        gchar* level_g = (gchar*)(*env)->GetStringUTFChars(env, level, 0);
        jint result = (jint)gnome_scores_display (title_g, app_name_g, level_g, (gint32)pos);
        if (title) (*env)->ReleaseStringUTFChars(env, title, title_g);
        if (app_name) (*env)->ReleaseStringUTFChars(env, app_name, app_name_g);
        if (level) (*env)->ReleaseStringUTFChars(env, level, level_g);
        return result;
    }

    /*
     * Class:     org.gnu.gnome.Scores
     * Method:    gnome_scores_set_logo_pixmap
     * Signature: (Ijava.lang.String;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_Scores_gnome_1scores_1set_1logo_1pixmap (JNIEnv *env, 
        jclass cls, jint gs, jstring logo) 
    {
        gchar* logo_g = (gchar*)(*env)->GetStringUTFChars(env, logo, 0);
        gnome_scores_set_logo_pixmap ((GnomeScores*)gs, logo_g);
        if (logo) (*env)->ReleaseStringUTFChars(env, logo, logo_g);
    }

    /*
     * Class:     org.gnu.gnome.Scores
     * Method:    gnome_scores_set_logo_widget
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_Scores_gnome_1scores_1set_1logo_1widget (JNIEnv *env, 
        jclass cls, jint gs, jint widget) 
    {
        GnomeScores *gs_g = (GnomeScores *)gs;
        GtkWidget *widget_g = (GtkWidget *)widget;
        {
            gnome_scores_set_logo_widget (gs_g, widget_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.Scores
     * Method:    gnome_scores_set_logo_label_title
     * Signature: (Ijava.lang.String;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_Scores_gnome_1scores_1set_1logo_1label_1title (JNIEnv *env, jclass cls, jint gs, jstring text) 
    {
        gchar* text_g = (gchar*)(*env)->GetStringUTFChars(env, text, 0);
        gnome_scores_set_logo_label_title ((GnomeScores*)gs, text_g);
        if (text) (*env)->ReleaseStringUTFChars(env, text, text_g);
    }

    /*
     * Class:     org.gnu.gnome.Scores
     * Method:    gnome_scores_set_current_player
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_Scores_gnome_1scores_1set_1current_1player (JNIEnv 
        *env, jclass cls, jint gs, jint i) 
    {
        GnomeScores *gs_g = (GnomeScores *)gs;
        gint32 i_g = (gint32) i;
        {
            gnome_scores_set_current_player (gs_g, i_g);
        }
    }

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

#endif
