This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: FYI: PR 19842


Hi,

I committed this patch to mainline.  It fixes PR 19842.
button_to_awt_mods was returning the new-style modifier masks where it
should have been returning the old-style ones.

Tom

2005-02-21  Thomas Fitzsimmons  <fitzsim@redhat.com>

	PR libgcj/19842
	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
	(button_to_awt_mods): Return BUTTON masks, not BUTTON_DOWN masks.

Index: jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
===================================================================
RCS file: /cvs/gcc/gcc/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c,v
retrieving revision 1.26
diff -u -r1.26 gnu_java_awt_peer_gtk_GtkEvents.c
--- jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c	16 Feb 2005 20:03:23 -0000	1.26
+++ jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c	22 Feb 2005 04:49:04 -0000
@@ -58,11 +58,11 @@
   switch (button)
     {
     case 1:
-      return AWT_BUTTON1_DOWN_MASK;
+      return AWT_BUTTON1_MASK;
     case 2:
-      return AWT_BUTTON2_DOWN_MASK;
+      return AWT_BUTTON2_MASK;
     case 3:
-      return AWT_BUTTON3_DOWN_MASK;
+      return AWT_BUTTON3_MASK;
     }
 
   return 0;



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]