[9588] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Re: GTK eval: internationalization and drag/drop

daemon@ATHENA.MIT.EDU (Owen Taylor)
Tue Oct 27 11:08:23 1998

To: gtk-list@redhat.com
From: Owen Taylor <otaylor@redhat.com>
Date: 27 Oct 1998 10:15:49 -0500
In-Reply-To: Peter Linsley's message of "Tue, 27 Oct 1998 15:30:51 +0900"
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com


Peter Linsley <plinsley@jp.oracle.com> writes:

> > > 2. Does GTK provide an API for drag and drop? For
> > >    example could I drag a button from one container
> > >    to another?
> > 
> > there is a DnD API but I'll be hornswaggled if I can find any examples or
> > documentation on how to use it.  Anyone have any pointers/example code for
> > me/us ?
> 
> Take a look at gtk+-1.x.x/gtk/testgtk.c in the source tree, it has a 
> comprehensive demo on DnD.

s/1.x.x/1.0.x/. The DND API has been completely replaced in the 1.1.x
development branch.

For the 1.1.x DND API, see gtk/testdnd.c and:

 http://www.labs.redhat.com/~otaylor/dnd-api.txt

The new API is much nicer and more powerful to use (IMHO), and the new
code supports the Xdnd and Motif protocols.  Converting from one to
the other isn't all that difficult in general.

Regards,
                                        Owen

-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post