Apparently, this patch raised some problems with the builder. I have
removed all stub functions until I implement them
2006-07-28 Lillian Angel <[EMAIL PROTECTED]>
* native/jni/gtk-peer/GtkDragSourceContextPeer.c:
Removed function declarations.
(connect_signals_for_widget): Removed implementation because
stub functions have been removed.
(drag_begin_cb): Removed function.
(drag_motion_cb): Likewise.
(drag_data_get_cb): Likewise.
(drag_data_delete_cb): Likewise.
(drag_drop_cb): Likewise.
(drag_end_cb): Likewise.
(drag_data_received_cb): Likewise.
On Fri, 2006-07-28 at 11:53 -0400, Lillian Angel wrote:
> I have implemented more functions/classes for DnD. It is still a work in
> progress and the native code is very much under construction, so please
> don't mind the mess.
>
> Now, we are able to drag from a source widget and drag to a target. The
> target is now recognized. We cannot drop the widget onto the target just
> yet.
>
> 2006-07-28 Lillian Angel <[EMAIL PROTECTED]>
>
> * native/jni/gtk-peer/GtkDragSourceContextPeer.c:
> Added more static functions to handle widget signals.
> (create): Initialized the javaObj field.
> (connectSignals): Added code to connect all signals to
> the appropriate functions and initialized all java
> function fields.
> (drag_begin_cb): New callback, not implemented.
> (drag_motion_cb): Likewise.
> (drag_data_get_cb): Likewise.
> (drag_data_delete_cb): Likewise.
> (drag_drop_cb): Likewise.
> (drag_end_cb): Likewise.
> (drag_data_received_cb): Likewise.
> (setTarget): New function.
> (nativeStartDrag): Added code to set the destination and source
> widgets.
> * java/awt/dnd/DragSource.java
> (startDrag): Removed FIXME.
> * java/awt/dnd/DragGestureRecognizer.java
> (fireDragGestureRecognized): Reset recognizer when events are
> fired.
> * java/awt/Component.java
> (setDropTarget): Added code to create the DropTargetContextPeer.
> * include/GtkDragSourceContextPeer.h: Regenerated.
> * gnu/java/awt/dnd/peer/gtk/GtkDropTargetPeer.java: Removed
> file.
> * gnu/java/awt/dnd/peer/gtk/GtkDropTargetContextPeer.java
> (GtkDropTargetContextPeer): Implemented.
> * gnu/java/awt/dnd/peer/gtk/GtkDragSourceContextPeer.java
> (GtkDragSourceContextPeer): Added code to set the target.
>
Index: native/jni/gtk-peer/GtkDragSourceContextPeer.c
===================================================================
RCS file: /cvsroot/classpath/classpath/native/jni/gtk-peer/GtkDragSourceContextPeer.c,v
retrieving revision 1.4
diff -u -r1.4 GtkDragSourceContextPeer.c
--- native/jni/gtk-peer/GtkDragSourceContextPeer.c 28 Jul 2006 16:48:00 -0000 1.4
+++ native/jni/gtk-peer/GtkDragSourceContextPeer.c 28 Jul 2006 20:46:30 -0000
@@ -43,18 +43,6 @@
static GtkWidget * get_widget (GtkWidget *widget);
static void connect_signals_for_widget (GtkWidget *widget);
-static void drag_begin_cb (GtkWidget *w, GdkDragContext *dc, gpointer data);
-static gboolean drag_motion_cb (GtkWidget *w, GdkDragContext *dc,
- gint x, gint y, guint t, gpointer data);
-static void drag_data_get_cb (GtkWidget *w, GdkDragContext *dc, GtkSelectionData
- *selection_data, guint info, guint t, gpointer data);
-static void drag_data_delete_cb (GtkWidget *w, GdkDragContext *dc, gpointer data);
-static gboolean drag_drop_cb (GtkWidget *w, GdkDragContext *dc, gint x,
- gint y, guint t, gpointer data);
-static void drag_end_cb (GtkWidget *w, GdkDragContext *dc, gpointer data);
-static void drag_data_received_cb (GtkWidget *w, GdkDragContext *dc, gint x,
- gint y, GtkSelectionData *selection_data,
- guint info, guint t, gpointer data);
#define ACTION_COPY 1
#define ACTION_MOVE 2
@@ -244,69 +232,8 @@
static void
connect_signals_for_widget (GtkWidget *w)
{
- g_signal_connect (G_OBJECT (w), "drag_motion",
- G_CALLBACK (drag_motion_cb), *gref);
- g_signal_connect (G_OBJECT (w), "drag_data_delete",
- G_CALLBACK (drag_data_delete_cb), *gref);
- g_signal_connect (G_OBJECT (w), "drag_end",
- G_CALLBACK (drag_end_cb), *gref);
- g_signal_connect (G_OBJECT (w), "drag_data_get",
- G_CALLBACK (drag_data_get_cb), *gref);
- g_signal_connect (G_OBJECT (w), "drag_data_received",
- G_CALLBACK (drag_data_received_cb), *gref);
- g_signal_connect (G_OBJECT (w), "drag_begin",
- G_CALLBACK (drag_begin_cb), *gref);
- g_signal_connect (G_OBJECT (w), "drag_drop",
- G_CALLBACK (drag_drop_cb), *gref);
-}
-
-static void
-drag_begin_cb (GtkWidget *w, GdkDragContext *dc, gpointer data)
-{
- /* FIXME: Not implemented. */
-}
-
-static gboolean
-drag_motion_cb (GtkWidget *w, GdkDragContext *dc,
- gint x, gint y, guint t, gpointer data)
-{
- /* FIXME: Not implemented. */
- return 0;
-}
-
-static void
-drag_data_get_cb (GtkWidget *w, GdkDragContext *dc, GtkSelectionData
- *selection_data, guint info, guint t, gpointer data)
-{
- /* FIXME: Not implemented. */
-}
-
-static void
-drag_data_delete_cb (GtkWidget *w, GdkDragContext *dc, gpointer data)
-{
- /* FIXME: Not implemented. */
-}
-
-static gboolean
-drag_drop_cb (GtkWidget *w, GdkDragContext *dc, gint x,
- gint y, guint t, gpointer data)
-{
- /* FIXME: Not implemented. */
- return 0;
-}
-
-static void
-drag_end_cb (GtkWidget *w, GdkDragContext *dc, gpointer data)
-{
- /* FIXME: Not implemented. */
-}
-
-static void
-drag_data_received_cb (GtkWidget *w, GdkDragContext *dc, gint x,
- gint y, GtkSelectionData *selection_data,
- guint info, guint t, gpointer data)
-{
/* FIXME: Not implemented. */
+ w = NULL;
}
JNIEXPORT void JNICALL