[gui] [PATCH] Migrating FileDialog's native peer to use GtkFileChooserDialog
David Jee
djee@redhat.com
Fri Jul 16 21:13:00 GMT 2004
Hello,
I've committed the following patch to the java-gui-branch. It is the
first step in migrating FileDialog's native peer from GtkFileSelection
to GtkFileChooserDialog that was introduced in GTK+ 2.4.
-David Jee
2004-07-15 David Jee <djee@redhat.com>
* gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
(create(GtkContainerPeer)): New native method.
(create()): Call native create(), passing in the parent frame
as the paramter. Natively set the current file and directory.
(setFile): Construct an absolute filename before passing it to
the native peer.
(nativeGetDirectory): New method.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
(window_closed): Removed.
(ok_clicked): Likewise.
(cancel_clicked): Likewise.
(handle_response): New method.
(create): Use GtkFileChooserDialog.
(connectSignals): Connect to handle_response.
(nativeGetDirectory): New method.
(nativeSetFile): Use GtkFileChooserDialog.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FileDialog1.patch
Type: text/x-patch
Size: 9287 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040716/8198a427/attachment.bin>
More information about the Java-patches
mailing list