[gui] [PATCH] Implement GtkFileDialogPeer.setFilenameFilter()
David Jee
djee@redhat.com
Thu Jul 22 02:26:00 GMT 2004
Hello,
I committed the following patch to the java-gui-branch. It implements
GtkFileDialogPeer.setFilenameFilter(), using gtk+ 2.4's new
gtk_file_filter_add_custom() interface. The patch also includes other
small improvements to the FileDialog peer.
-David Jee
2004-07-20 David Jee <djee@redhat.com>
* gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
Collect all native method declaration at the top.
(create): Set the filename filter if necessary.
(setDirectory): Call nativeSetDirectory().
(setFilenameFilter): Implement.
(filenameFilterCallback): New method.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
(create): Configure dialog to show hidden files.
(filenameFilterCallback): New function.
(nativeSetFilenameFilter): New function.
(nativeSetDirectory): New function.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FileDialog2.patch
Type: text/x-patch
Size: 6527 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040722/67e332bd/attachment.bin>
More information about the Java-patches
mailing list