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: Stan Pinte <alto_stan at wanadoo dot be>
- To: Daniel Skarda <0rfelyus at ucw dot cz>,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: Wed, 06 Nov 2002 09:57:44 +0100
- Subject: Re: implementing guile-gtk drag & drop...
- References: <87d6pmd7a3.fsf@zagadka.ping.de><3DC279A4.1010000@wanadoo.be><87d6pmd7a3.fsf@zagadka.ping.de>
At 01:26 6-11-2002 +0100, Daniel Skarda wrote:
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,
do you know where I can find a good explanation of the reference counting
strategies, in GTK?
Because I don't understand what is the problem...(blame my very poor
knowledge of guile-gtk and gtk)
thanks,
Stan.
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.