Il giorno dom, 23/07/2006 alle 23.23 -0400, Lillian Angel ha scritto: > > This works well. Please feel free to commit this patch. > > Thanks a lot! > Lillian
Ok, thanks! Committed with this ChangeLog: 2006-07-24 Mario Torre <[EMAIL PROTECTED]> * gnu/java/awt/peer/gtk/GtkToolkit.java (createDragGestureRecognizer): now explicity registerListeners on GtkMouseDragGestureRecognizer instance. * gnu/java/awt/dnd/GtkMouseDragGestureRecognizer.java (unregisterListeners): new method, overrided from base class to rise visibility (from protected to public). (registerListeners): Likewise. (GtkMouseDragGestureRecognizer): fixed potential threading issue: removed call to registerListeners from the constructor. -- Lima Software, SO.PR.IND. s.r.l. http://www.limasoftware.net/ pgp key: http://subkeys.pgp.net/ Please, support open standards: http://opendocumentfellowship.org/petition/ http://www.nosoftwarepatents.com/
### Eclipse Workspace Patch 1.0 #P classpath Index: gnu/java/awt/peer/gtk/GtkToolkit.java =================================================================== RCS file: /sources/classpath/classpath/gnu/java/awt/peer/gtk/GtkToolkit.java,v retrieving revision 1.91 diff -u -r1.91 GtkToolkit.java --- gnu/java/awt/peer/gtk/GtkToolkit.java 15 Jul 2006 08:02:23 -0000 1.91 +++ gnu/java/awt/peer/gtk/GtkToolkit.java 21 Jul 2006 22:12:21 -0000 @@ -615,8 +615,16 @@ DragGestureListener l) { if (recognizer.getName().equals("java.awt.dnd.MouseDragGestureRecognizer")) - return new GtkMouseDragGestureRecognizer(ds, comp, actions, l); - return null; + { + GtkMouseDragGestureRecognizer gestureRecognizer + = new GtkMouseDragGestureRecognizer(ds, comp, actions, l); + gestureRecognizer.registerListeners(); + return gestureRecognizer; + } + else + { + return null; + } } public Map mapInputMethodHighlight(InputMethodHighlight highlight) Index: gnu/java/awt/dnd/GtkMouseDragGestureRecognizer.java =================================================================== RCS file: /sources/classpath/classpath/gnu/java/awt/dnd/GtkMouseDragGestureRecognizer.java,v retrieving revision 1.3 diff -u -r1.3 GtkMouseDragGestureRecognizer.java --- gnu/java/awt/dnd/GtkMouseDragGestureRecognizer.java 21 Jul 2006 21:05:14 -0000 1.3 +++ gnu/java/awt/dnd/GtkMouseDragGestureRecognizer.java 21 Jul 2006 22:12:20 -0000 @@ -69,8 +69,16 @@ DragGestureListener dgl) { super(ds, c, act, dgl); - - registerListeners(); + } + + public void registerListeners () + { + super.registerListeners(); + } + + public void unregisterListeners () + { + super.unregisterListeners(); } public void mouseClicked (MouseEvent e)