This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
FYI: Patch: Prevent AWT dialog crash
- From: Thomas Fitzsimmons <fitzsim at redhat dot com>
- To: GCJ Patches <java-patches at gcc dot gnu dot org>
- Date: 22 Aug 2003 10:28:37 -0400
- Subject: FYI: Patch: Prevent AWT dialog crash
I'm checking this in as obvious. GTK_WINDOW_DIALOG is no longer present
in GTK-2.0. This fixes a crash in the GTK dialog peer.
Tom
2003-08-22 Thomas Fitzsimmons <fitzsim@redhat.com>
* gnu/java/awt/peer/gtk/GtkWindowPeer.java: Remove
GTK_WINDOW_DIALOG. Set GTK_WINDOW_POPUP to 1.
Index: gnu/java/awt/peer/gtk/GtkWindowPeer.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/java/awt/peer/gtk/GtkWindowPeer.java,v
retrieving revision 1.2
diff -u -b -B -r1.2 GtkWindowPeer.java
--- gnu/java/awt/peer/gtk/GtkWindowPeer.java 9 Jul 2003 07:50:00 -0000 1.2
+++ gnu/java/awt/peer/gtk/GtkWindowPeer.java 22 Aug 2003 14:21:07 -0000
@@ -47,8 +47,7 @@
implements WindowPeer
{
static protected final int GTK_WINDOW_TOPLEVEL = 0;
- static protected final int GTK_WINDOW_DIALOG = 1;
- static protected final int GTK_WINDOW_POPUP = 2;
+ static protected final int GTK_WINDOW_POPUP = 1;
native void create (int type);