summaryrefslogtreecommitdiff
path: root/java/awt/Component.java
diff options
context:
space:
mode:
authorLillian Angel <langel@redhat.com>2006-07-17 18:37:19 +0000
committerLillian Angel <langel@redhat.com>2006-07-17 18:37:19 +0000
commit1d58a8693b8a5ba7a9d3b0f4bb816c3689fbfee6 (patch)
tree32cdcd321aef0c4db6271b2773143f1728547679 /java/awt/Component.java
parenta553c17ba58f627dd804c8d2f962f827db825e59 (diff)
downloadclasspath-1d58a8693b8a5ba7a9d3b0f4bb816c3689fbfee6.tar.gz
2006-07-17 Lillian Angel <langel@redhat.com>
* examples/gnu/classpath/examples/awt/Demo.java (Demo): Added new window for DnD demo. (DragDropWindow): New class. * gnu/java/awt/dnd/peer/gtk/GtkDragSourceContextPeer.java: Added new fields and declarations for native functions. (GtkDragSourceContextPeer): Implemented. (getComponentPeer): New function. (startDrag): Partially implemented. (getCursor): Implemented. (setCursor): Implemented. * include/GtkDragSourceContextPeer.h: New file. * include/Makefile.am: Added new header file. * java/awt/Component.java (addNotify): Added call to the dropTarget's addNotify. * java/awt/dnd/DragSource.java (startDrag): Fixed code to use shared instances of peer and context. (getDragThreshold): Added stub. * java/awt/dnd/DropTarget.java (DropTarget): Implemented fully. (addNotify): Added code to get the peer of the parent that is not lightweight. * java/awt/dnd/DropTargetDragEvent.java (getTransferable): Added stub. * native/jni/gtk-peer/GtkDragSourceContextPeer.c: New file. * native/jni/gtk-peer/Makefile.am: Added new c file. * gnu/java/awt/dnd/peer/gtk/GtkDropTargetContextPeer.java: Changed to extend GtkGenericPeer. (GtkDropTargetContextPeer): New constructor. * gnu/java/awt/dnd/peer/gtk/GtkDropTargetPeer.java: Changed to extend GtkGenericPeer. (GtkDropTargetContextPeer): New constructor.
Diffstat (limited to 'java/awt/Component.java')
-rw-r--r--java/awt/Component.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/java/awt/Component.java b/java/awt/Component.java
index 370d5cafb..cc422c2aa 100644
--- a/java/awt/Component.java
+++ b/java/awt/Component.java
@@ -3856,6 +3856,8 @@ public abstract class Component
the peer. For efficiency, the peer can choose not to
invalidate if it is happy with the current dimensions,
etc. */
+ if (dropTarget != null)
+ dropTarget.addNotify(peer);
}
}