#include <jni.h>
#include <stdio.h>
#include <jni_util.h>
#include <string.h>
#include "gtk2_interface.h"
#include "sun_awt_X11_GtkFileDialogPeer.h"
#include "java_awt_FileDialog.h"
#include "debug_assert.h"
/* To cache some method IDs */
{
}
{
filename);
}
{
{
// Callbacks from GTK signals are made within the GTK lock
// So, within a signal handler there is no need to call
// gdk_threads_enter() / fp_gdk_threads_leave()
if (!isSignalHandler) {
}
fp_gtk_main_quit ();
if (!isSignalHandler) {
}
}
}
/*
* Class: sun_awt_X11_GtkFileDialogPeer
* Method: quit
* Signature: ()V
*/
{
}
/*
* Class: sun_awt_X11_GtkFileDialogPeer
* Method: toFront
* Signature: ()V
*/
{
}
}
/*
* Class: sun_awt_X11_GtkFileDialogPeer
* Method: setBounds
* Signature: (IIIII)V
*/
{
if (x >= 0 && y >= 0) {
}
}
}
}
/**
* Convert a GSList to an array of filenames (without the parent folder)
*/
{
int i;
char* entry;
return NULL;
}
return NULL;
}
NULL);
return NULL;
}
i = 0;
i++;
}
return array;
}
{
char *current_folder;
if (responseId == GTK_RESPONSE_ACCEPT) {
}
}
/*
* Class: sun_awt_X11_GtkFileDialogPeer
* Method: run
*/
{
}
if (mode == java_awt_FileDialog_SAVE) {
/* Save action */
}
else {
/* Default action OPEN */
/* Set multiple selection mode, that is allowed only in OPEN action */
if (multiple) {
multiple);
}
}
}
/* Set the directory */
}
/* Set the filename */
if (mode == java_awt_FileDialog_SAVE) {
} else {
}
}
/* Set the file filter */
}
/* Other Properties */
}
/* Set the initial location */
if (x >= 0 && y >= 0) {
// NOTE: it doesn't set the initial size for the file chooser
// as it seems like the file chooser overrides the size internally
}
fp_gtk_main();
}