diff options
author | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-06 06:07:01 +0000 |
---|---|---|
committer | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-06 06:07:01 +0000 |
commit | 8b05f83e518b77bcb51efb61a581f72288071b19 (patch) | |
tree | 558d270079b6a41b946e6d34804dee81de9e0fe0 /libjava/jni | |
parent | 66e2f6e7d39d0673c04409215da42eef752afe5f (diff) | |
download | linaro-gcc-8b05f83e518b77bcb51efb61a581f72288071b19.tar.gz linaro-gcc-8b05f83e518b77bcb51efb61a581f72288071b19.tar.bz2 linaro-gcc-8b05f83e518b77bcb51efb61a581f72288071b19.zip |
2005-05-06 Mark Wielaard <mark@klomp.org>
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
(window_delete_cb): Don't use C++ style comments.
2005-05-06 Robert Schuster <thebohemian@gmx.net>
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Fixed
copyright header.
2005-05-06 Robert Schuster <thebohemian@gmx.net>
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
(window_delete_cb): Made the function return TRUE.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99301 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/jni')
-rw-r--r-- | libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c b/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c index 184ca56ca65..318b13ad140 100644 --- a/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c +++ b/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c @@ -1,5 +1,5 @@ /* gtkwindowpeer.c -- Native implementation of GtkWindowPeer - Copyright (C) 1998, 1999, 2002, 2004 Free Software Foundation, Inc. + Copyright (C) 1998, 1999, 2002, 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -56,7 +56,7 @@ static Bool property_notify_predicate (Display *display, XEvent *xevent, XPointer arg); -static void window_delete_cb (GtkWidget *widget, GdkEvent *event, +static gboolean window_delete_cb (GtkWidget *widget, GdkEvent *event, jobject peer); static void window_destroy_cb (GtkWidget *widget, GdkEvent *event, jobject peer); @@ -465,7 +465,7 @@ property_notify_predicate (Display *xdisplay __attribute__((unused)), return False; } -static void +static gboolean window_delete_cb (GtkWidget *widget __attribute__((unused)), GdkEvent *event __attribute__((unused)), jobject peer) @@ -476,6 +476,12 @@ window_delete_cb (GtkWidget *widget __attribute__((unused)), (jint) AWT_WINDOW_CLOSING, (jobject) NULL, (jint) 0); gdk_threads_enter (); + + /* Prevents that the Window dissappears ("destroy" + not being signalled). This is necessary because it + should be up to a WindowListener implementation + how the AWT Frame responds to close requests. */ + return TRUE; } static void |