diff options
author | Thomas Fitzsimmons <fitzsim@redhat.com> | 2005-08-26 04:35:47 +0000 |
---|---|---|
committer | Thomas Fitzsimmons <fitzsim@redhat.com> | 2005-08-26 04:35:47 +0000 |
commit | c9d5a3b01311a1d4da172ddf4e3f3b9cc1a9514f (patch) | |
tree | 0f6ea8e3f5befe6ba24cfdcceac5854316ea557d /gnu | |
parent | c9398af824ed3b1c9a28dcf166c611ded92b4b58 (diff) | |
download | classpath-c9d5a3b01311a1d4da172ddf4e3f3b9cc1a9514f.tar.gz |
2005-08-26 Thomas Fitzsimmons <fitzsim@redhat.com>
PR classpath/21660:
* gnu/java/awt/peer/gtk/GtkFileDialogPeer.java,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
(AWT_FILEDIALOG_LOAD): New macro.
(AWT_FILEDIALOG_SAVE): Likewise.
(create(GtkContainerPeer,int)): Add mode parameter. Create Save
dialog if mode is AWT_FILEDIALOG_SAVE. Remove workaround for
http://bugzilla.gnome.org/show_bug.cgi?id=166852.
(create()): Add mode argument to create call.
* gnu/java/awt/peer/gtk/GtkWindowPeer.java,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
(setVisibleNative): Override method.
(setVisibleNativeUnlocked): Override method. Call gdk_flush after
showing or hiding window.
* include/gnu_java_awt_peer_gtk_GtkFileDialogPeer.h: Regenerate.
* include/gnu_java_awt_peer_gtk_GtkWindowPeer.h: Regenerate.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/java/awt/peer/gtk/GtkFileDialogPeer.java | 5 | ||||
-rw-r--r-- | gnu/java/awt/peer/gtk/GtkWindowPeer.java | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gnu/java/awt/peer/gtk/GtkFileDialogPeer.java b/gnu/java/awt/peer/gtk/GtkFileDialogPeer.java index 9bec15387..333407b24 100644 --- a/gnu/java/awt/peer/gtk/GtkFileDialogPeer.java +++ b/gnu/java/awt/peer/gtk/GtkFileDialogPeer.java @@ -55,7 +55,7 @@ public class GtkFileDialogPeer extends GtkDialogPeer implements FileDialogPeer private String currentDirectory = null; private FilenameFilter filter; - native void create (GtkContainerPeer parent); + native void create (GtkContainerPeer parent, int mode); native void connectSignals (); native void nativeSetFile (String file); public native String nativeGetDirectory(); @@ -64,7 +64,8 @@ public class GtkFileDialogPeer extends GtkDialogPeer implements FileDialogPeer public void create() { - create((GtkContainerPeer) awtComponent.getParent().getPeer()); + create((GtkContainerPeer) awtComponent.getParent().getPeer(), + ((FileDialog) awtComponent).getMode()); FileDialog fd = (FileDialog) awtComponent; diff --git a/gnu/java/awt/peer/gtk/GtkWindowPeer.java b/gnu/java/awt/peer/gtk/GtkWindowPeer.java index e203de788..c84d51037 100644 --- a/gnu/java/awt/peer/gtk/GtkWindowPeer.java +++ b/gnu/java/awt/peer/gtk/GtkWindowPeer.java @@ -105,6 +105,9 @@ public class GtkWindowPeer extends GtkContainerPeer { } + public native void setVisibleNative (boolean b); + public native void setVisibleNativeUnlocked (boolean b); + native void connectSignals (); public GtkWindowPeer (Window window) |