Re: Gtk 2.2.2 : DND!! No API??? help ;-(



On Sun, 2003-08-17 at 04:03, Matthias Mann wrote:
And now trying to drop to this widget takes no effect. The
callback never starts. I think i need to send datas and then
the callback function will receive the "drag-data-received"
signal. But what i need to do? I thought this will be handled
by using the GtkTargetEntry. Is that right? And if yes, how
to use?

You have to catch the drag-drop event on the target widget.  Then from
there you call the data receive gtk call and that then requests the data
after which you'll the data received callback will be called.  Later
today I'll send you an example. (There used to be one in the gtk demo
code, but I can't find it there now.)

Basically,
http://developer.gnome.org/doc/API/2.0/gtk/gtk-Drag-and-Drop.html should
explain all the calls used in dnd.  You are right in that the
GtkTargetEntry is somewhat arbitrary.  I believe this is the field where
file managers put in mime-types, etc.  The drag-n-drop events are listed
under widget.

I'll send you a working demo program later today.

Michael


    
mathew
    
-- 
Michael Torrie <torriem chem byu edu>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]