This is the mail archive of the guile-gtk@sources.redhat.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: implementing guile-gtk drag & drop...


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.






Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]