[kaffe] CVS kaffe (robilad): Resynced with GNU Classpath: ToolTipManager mouse movement fix
Kaffe CVS
cvs-commits at kaffe.org
Tue Nov 23 17:42:27 PST 2004
PatchSet 5471
Date: 2004/11/24 01:37:50
Author: robilad
Branch: HEAD
Tag: (none)
Log:
Resynced with GNU Classpath: ToolTipManager mouse movement fix
2004-11-24 Dalibor Topic <robilad at kaffe.org>
* libraries/javalib/javax/swing/ToolTipManager.java:
Resynced with GNU Classpath.
2004-11-14 Mark Wielaard <mark at klomp.org>
* javax/swing/ToolTipManager.java (mouseMoved): Set currentComponent
when not yet set.
Members:
ChangeLog:1.3017->1.3018
libraries/javalib/javax/swing/ToolTipManager.java:1.6->1.7
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3017 kaffe/ChangeLog:1.3018
--- kaffe/ChangeLog:1.3017 Mon Nov 22 20:29:54 2004
+++ kaffe/ChangeLog Wed Nov 24 01:37:50 2004
@@ -1,3 +1,13 @@
+2004-11-24 Dalibor Topic <robilad at kaffe.org>
+
+ * libraries/javalib/javax/swing/ToolTipManager.java:
+ Resynced with GNU Classpath.
+
+ 2004-11-14 Mark Wielaard <mark at klomp.org>
+
+ * javax/swing/ToolTipManager.java (mouseMoved): Set currentComponent
+ when not yet set.
+
2004-11-22 Guilhem Lavaux <guilhem at kaffe.org>
* replace/semaphores.c: Include errno.h too.
Index: kaffe/libraries/javalib/javax/swing/ToolTipManager.java
diff -u kaffe/libraries/javalib/javax/swing/ToolTipManager.java:1.6 kaffe/libraries/javalib/javax/swing/ToolTipManager.java:1.7
--- kaffe/libraries/javalib/javax/swing/ToolTipManager.java:1.6 Sat Nov 13 02:17:45 2004
+++ kaffe/libraries/javalib/javax/swing/ToolTipManager.java Wed Nov 24 01:37:53 2004
@@ -452,7 +452,13 @@
{
currentPoint = event.getPoint();
if (currentTip != null)
- currentTip.setTipText(((JComponent) currentComponent).getToolTipText(event));
+ {
+ if (currentComponent == null)
+ currentComponent = (Component) event.getSource();
+
+ String text = ((JComponent) currentComponent).getToolTipText(event);
+ currentTip.setTipText(text);
+ }
if (enterTimer.isRunning())
enterTimer.restart();
}
More information about the kaffe
mailing list