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

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

    /*
     * Class:     org.gnu.gnome.PixmapEntry
     * Method:    gnome_pixmap_entry_new
     * Signature: (java.lang.String;java.lang.String;Z)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_PixmapEntry_gnome_1pixmap_1entry_1new (JNIEnv *env, 
        jclass cls, jstring historyId, jstring browseDialogTitle, jboolean doPreview) 
    {
        gchar* historyId_g = (gchar*)(*env)->GetStringUTFChars(env, historyId, 0);
        gchar* browseDialogTitle_g = (gchar*)(*env)->GetStringUTFChars(env, browseDialogTitle, 0);
        jint result = (jint)gnome_pixmap_entry_new (historyId_g, browseDialogTitle_g, (gboolean)doPreview);    
        if (historyId) (*env)->ReleaseStringUTFChars(env, historyId, historyId_g);
        if (browseDialogTitle) (*env)->ReleaseStringUTFChars(env, browseDialogTitle, browseDialogTitle_g);
        return result;
    }

    /*
     * Class:     org.gnu.gnome.PixmapEntry
     * Method:    gnome_pixmap_entry_set_pixmap_subdir
     * Signature: (Ijava.lang.String;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_PixmapEntry_gnome_1pixmap_1entry_1set_1pixmap_1subdir (
        JNIEnv *env, jclass cls, jint pentry, jstring subdir) 
    {
        gchar* subdir_g = (gchar*)(*env)->GetStringUTFChars(env, subdir, 0);
        gnome_pixmap_entry_set_pixmap_subdir ((GnomePixmapEntry*)pentry, subdir_g);
        if (subdir) (*env)->ReleaseStringUTFChars(env, subdir, subdir_g);
    }

    /*
     * Class:     org.gnu.gnome.PixmapEntry
     * Method:    gnome_pixmap_entry_scrolled_window
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_PixmapEntry_gnome_1pixmap_1entry_1scrolled_1window (
        JNIEnv *env, jclass cls, jint pentry) 
    {
        GnomePixmapEntry *pentry_g = (GnomePixmapEntry *)pentry;
        {
            return (jint)gnome_pixmap_entry_scrolled_window (pentry_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.PixmapEntry
     * Method:    gnome_pixmap_entry_preview_widget
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_PixmapEntry_gnome_1pixmap_1entry_1preview_1widget (
        JNIEnv *env, jclass cls, jint pentry) 
    {
        GnomePixmapEntry *pentry_g = (GnomePixmapEntry *)pentry;
        {
            return (jint)gnome_pixmap_entry_preview_widget (pentry_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.PixmapEntry
     * Method:    gnome_pixmap_entry_set_preview
     * Signature: (IZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_PixmapEntry_gnome_1pixmap_1entry_1set_1preview (
        JNIEnv *env, jclass cls, jint pentry, jboolean doPreview) 
    {
        GnomePixmapEntry *pentry_g = (GnomePixmapEntry *)pentry;
        gboolean doPreview_g = (gboolean) doPreview;
        {
            gnome_pixmap_entry_set_preview (pentry_g, doPreview_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.PixmapEntry
     * Method:    gnome_pixmap_entry_set_preview_size
     * Signature: (III)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_PixmapEntry_gnome_1pixmap_1entry_1set_1preview_1size (
        JNIEnv *env, jclass cls, jint pentry, jint width, jint height) 
    {
        GnomePixmapEntry *pentry_g = (GnomePixmapEntry *)pentry;
        gint32 width_g = (gint32) width;
        gint32 height_g = (gint32) height;
        {
            gnome_pixmap_entry_set_preview_size (pentry_g, width_g, height_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.PixmapEntry
     * Method:    gnome_pixmap_entry_get_filename
     * Signature: (I)java.lang.String;
     */
    JNIEXPORT jstring JNICALL Java_org_gnu_gnome_PixmapEntry_gnome_1pixmap_1entry_1get_1filename (
        JNIEnv *env, jclass cls, jint pentry) 
    {
        gchar *result_g = (gchar*)gnome_pixmap_entry_get_filename ((GnomePixmapEntry*)pentry);
        return (*env)->NewStringUTF(env, result_g);
    }

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

#endif
