Small fix. All these functions should be static.

2006-06-14  Lillian Angel  <[EMAIL PROTECTED]>

        * java/awt/Component.java
        (ignoreOldMouseEvents): Made static.
        (translateEvent): Made static.
        * java/awt/TextComponent.java
        (ignoreOldMouseEvents): Made static.


On Wed, 2006-06-14 at 12:27 -0400, Lillian Angel wrote:
> The JDK TextComponent ignores all old mouse events. I fixed our
> implementation to do this by creating a package-private function in
> Component and TextComponent.
> 
> This also fixes: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27695
> 
> I have committed a mauve test for this as well.
> 
> 2006-06-14  Lillian Angel  <[EMAIL PROTECTED]>
> 
>         * java/awt/Component.java
>         (ignoreOldMouseEvents): New helper function.
>         (translateEvent): Changed to be non-static and use new helper.
>         * java/awt/TextComponent.java
>         (ignoreOldMouseEvents): New helper function.
> 
Index: java/awt/Component.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/Component.java,v
retrieving revision 1.123
diff -u -r1.123 Component.java
--- java/awt/Component.java	14 Jun 2006 16:26:07 -0000	1.123
+++ java/awt/Component.java	14 Jun 2006 19:08:25 -0000
@@ -2323,7 +2323,7 @@
    * 
    * @return false, no mouse events are ignored.
    */
-  boolean ignoreOldMouseEvents()
+  static boolean ignoreOldMouseEvents()
   {
     return false;
   }
@@ -4812,7 +4812,7 @@
    *
    * @return an AWT 1.0 event representing e
    */
-  Event translateEvent (AWTEvent e)
+  static Event translateEvent (AWTEvent e)
   {
     Object target = e.getSource ();
     Event translated = null;
Index: java/awt/TextComponent.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/TextComponent.java,v
retrieving revision 1.22
diff -u -r1.22 TextComponent.java
--- java/awt/TextComponent.java	14 Jun 2006 16:26:08 -0000	1.22
+++ java/awt/TextComponent.java	14 Jun 2006 19:08:25 -0000
@@ -740,7 +740,7 @@
    * 
    * @return true to ignore all old mouse events.
    */
-  boolean
+  static boolean
   ignoreOldMouseEvents()
   {
     return true;

Reply via email to