This is the mail archive of the
guile-gtk@sources.redhat.com
mailing list for the Guile project.
Re: implementing guile-gtk drag & drop...
- From: Daniel Skarda <0rfelyus at ucw dot cz>
- To: Marius Vollmer <mvo at zagadka dot ping dot de>
- Cc: Stanislas Pinte <alto_stan at wanadoo dot be>, guile-gtk <guile-gtk at sources dot redhat dot com>, David Pirotte <david at altosw dot be>
- Date: 06 Nov 2002 01:26:24 +0100
- Subject: Re: implementing guile-gtk drag & drop...
- References: <3DC279A4.1010000@wanadoo.be> <87d6pmd7a3.fsf@zagadka.ping.de>
Hello,
last few hours I played with guile-gtk and drag'n'drop and I wrote bindings
for dnd functions. I was able to to write working scheme sibling of testdnd.c.
The biggest problem was GtkSelectionData - a Gtk structure without "classic"
reference counting, moreover it is parameter of many gtk callbacks and dnd
stopped working when I use gtk_selection_data_copy/free :-(
My (temporal) solution is little bit unsafe - or it is save until you copy
signal-data outside of signal handler and use it later. I guess this is very
unlikely but guile-gtk should be adjusted to handle such wild code
(unfortunately, this GtkSelectionData "feature" was not improved in Gtk+ 2.0 :-(
I post my patch once I clean up my code.
0.