Re: GTK eval: internationalization and drag/drop




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



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