This is the mail archive of the
guile-gtk@sources.redhat.com
mailing list for the Guile project.
Re: Selection and DND completed
- From: Kevin Ryde <user42 at zip dot com dot au>
- To: Marko Rauhamaa <marko at pacujo dot net>
- Cc: guile-gtk at sources dot redhat dot com
- Date: Sat, 24 May 2003 08:00:53 +1000
- Subject: Re: Selection and DND completed
- References: <m3k7cq9g20.fsf@lumo.pacujo.net>
Marko Rauhamaa <marko@pacujo.net> writes:
>
> gdk_selection_property_get_interp
>
> return length ? scm_take_str (data, length) : SCM_BOOL_F;
Not sure if length==0 would be valid data, though I don't see a reason
it wouldn't be. It might be nice to return an empty string for that.
data==NULL is supposedly the error indication, perhaps that could give
the #f.
However the 1.2 code looks like it doesn't store anything to data if
the window has been destroyed, so it might be prudent to initialize to
NULL.
It also looks like prop_type and prop_format are not set if the window
has been destroyed, maybe they should get initial values to avoid
problems too. GDK_NONE and 0 might be enough.