To be honest, I've never tried gtk dnd so I can just make some random
remarks,
1.consig, consig3, ... consig7
   the suffix indicate the number of parameter of the callback handler,
   consig is acutally consig2.

2.signal names accept both hyphen and underscore.

3.callback handler
   the parameters are always 32 or 64-bit intergers depending on J32/J64.
   the first parameter is the widget that received the signal., the last
   parameter is user-data that is already used by JGTK, do not use it in
   your code. eg.
   for consig
        'widget data'=. y
   for consig3
        'widget event data'=. y
   for consig4
        'widget foo bar data'=. y 
   the actual number of parameter depends on signals. You can get this
   information from gtk api reference, and then use the appropiate 
   consig[n] as needed.

drag_begin_handl (GtkWidget *widget, GdkDragContext *context, gpointer
user_data){
      const gchar *name = gtk_widget_get_name (widget);
      g_print("%s: drag_begin_handl\n", name);
}

should be something like
(should use consig3 to connect signal)

drag_begin_handl=: 3 : 0
'widget context data'=. y
name=. memr 0 _1,~  gtk_widget_get_name widget
smoutput name, ': drag_begin_handl'
)

4. gtk datatypes are list in api reference,
   in particular I can see there is gtk_target_entry_new 
   which may be useful.
 
5. The "drag-data-received" signal

void  user_function  (GtkWidget *widget,
                      GdkDragContext *drag_context,
                      gint x,
                      gint y,
                      GtkSelectionData *data,
                      guint info,
                      guint time,
                      gpointer user_data)

there are 8 parameters in its handler, thus consig8 is needed. However
the biggest is consig7 in jgtk, I have just added consig8 to Public repo, 
please add it yourself and also add other dnd related api to run your
codes.

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to