Re: drag and drop in gnome



On 3 Aug 1999 23:28:12 -0400, Daniel Weber <DWEBER1@austin.rr.com> wrote:

>    I'm trying to implement a sample program that accepts drag-n-drop,
>however I'm having a serios amount of difficulty in getting it to work.
>I'm working from the xDND specification page and the gtk source, but
>haven't gotten anywhere, really.  Questions include:

You're digging into the low-level stuff. It's really not that complicated ;-)

Setting up a drag source:
	Call gtk_drag_source_set() with appropriate params.
	Provide an appropriate handler for the "drag_data_get" signal.

Setting up a drag destination:
	Call gtk_drag_dest_set() with the appropriate params.
	Provide an appropriate handler for the "drag_data_received" signal.

That's all there is.
-- Elliot
Who me? I just wander from room to room.



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