Re: Drag and drop





On 15 May 1999, Owen Taylor wrote:

> 
> Jens Askengren <dat98jas@ludat.lth.se> writes:
> 
> > Hi!
> > 
> > I have studied the docs and done some unsucsessfull experimenting
> > with the drag and drop stuff.
> > 
> > Could someone, please give me a hint, url, etc how to use DnD.   
> 
> As well as testdnd.
> 
> See:
> 
>   http://www.gtk.org/rdp/gtk/gtk-drag-and-drop.html
>   http://www.labs.redhat.com/~otaylor/dnd-api.txt
>   
> [ The latter is slightly out of date ]
> 
>                                         Owen
> 

Hmmm... the testgtk-program seems to have the same problem as I:

When you call gtk_drag_dest_set (GtkWidget *widget,
                                 GtkDestDefaults flags,
                                 const GtkTargetEntry *targets,
                                 gint n_targets,
                                 GdkDragAction actions);

With targets=NULL no i-will-accept-drop-border will be drawn around
the widget.

With targets set to the targettypes we accept, the border will be drawn,
but when recieving a drop from netscape, GTK will output several warnings.
When recieving a drop from the same app it seems to work just fine.

Jens




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