From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11418 invoked by alias); 6 Nov 2002 00:20:22 -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 11409 invoked from network); 6 Nov 2002 00:20:20 -0000 Received: from unknown (HELO mail.tiscali.cz) (213.235.135.70) by sources.redhat.com with SMTP; 6 Nov 2002 00:20:20 -0000 Received: from hobitin.ucw.cz (212.11.98.169) by mail.tiscali.cz (6.0.044) id 3DC10A63000FD0F7; Wed, 6 Nov 2002 01:18:59 +0100 Received: from 0rfelyus by hobitin.ucw.cz with local (Exim 3.36 #1 (Debian)) id 189E1Z-00069R-00; Wed, 06 Nov 2002 01:26:25 +0100 To: Marius Vollmer Cc: Stanislas Pinte , guile-gtk , David Pirotte Subject: Re: implementing guile-gtk drag & drop... References: <3DC279A4.1010000@wanadoo.be> <87d6pmd7a3.fsf@zagadka.ping.de> From: Daniel Skarda <0rfelyus@ucw.cz> Date: Tue, 05 Nov 2002 16:20:00 -0000 In-Reply-To: <87d6pmd7a3.fsf@zagadka.ping.de> Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-q4/txt/msg00003.txt.bz2 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.