Patch: FYI: small event handler fix

Thomas Fitzsimmons fitzsim@redhat.com
Mon Dec 22 20:46:00 GMT 2003


Hello,

I committed this to CVS head.  It fixes a crash in the pre_event_handler
function.

Tom

2003-12-22  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
	(pre_event_handler): Don't dereference NULL focus_obj_ptr.

--- jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c	16 Dec 2003 17:20:34
-0000	1.14
+++ jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c	20 Dec 2003 20:10:09
-0000
@@ -1043,7 +1043,7 @@
 
         /* A widget with a grab will get key events */
 	if (!GTK_IS_WINDOW (widget))
-	    *focus_obj_ptr = peer;
+	  focus_obj_ptr = &peer;
 	else
 	  {
             GtkWindow *window;




More information about the Java-patches mailing list