From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12857 invoked by alias); 6 Nov 2002 08:58:00 -0000 Mailing-List: contact guile-gtk-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: guile-gtk-owner@sources.redhat.com Received: (qmail 12838 invoked from network); 6 Nov 2002 08:57:58 -0000 Received: from unknown (HELO 127.0.0.1) (213.190.149.159) by sources.redhat.com with SMTP; 6 Nov 2002 08:57:58 -0000 Message-Id: <5.1.1.6.0.20021106094931.00a91210@pop.wanadoo.be> X-Sender: arhu0004@wanadoo.be@pop.wanadoo.be Date: Wed, 06 Nov 2002 00:58:00 -0000 To: Daniel Skarda <0rfelyus@ucw.cz>,Marius Vollmer From: Stan Pinte Subject: Re: implementing guile-gtk drag & drop... Cc: Stanislas Pinte , guile-gtk ,David Pirotte In-Reply-To: References: <87d6pmd7a3.fsf@zagadka.ping.de> <3DC279A4.1010000@wanadoo.be> <87d6pmd7a3.fsf@zagadka.ping.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-GCMulti: 1 X-SW-Source: 2002-q4/txt/msg00004.txt.bz2 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.