This is the mail archive of the
guile-gtk@sources.redhat.com
mailing list for the Guile project.
Re: Selection and DND completed
Kevin Ryde <user42@zip.com.au>:
> Marko Rauhamaa <marko@pacujo.net> writes:
> >
> > Prop_type is sent to sgtk_atom2scm(), which returns SCM_BOOL_F if
> > the atom is garbage.
>
> Though you should bear in mind Xlib will do a round-trip to the server
> if it's not in the local cache.
Ok, just to please you I set *prop_type to GDK_NONE and *prop_format to
8 (sic) in case of failure.
You should bear in mind that the round-trip happens as a rule. It is now
avoided in case of failure. So in case you want to call
gdk_selection_property_get in a hit-and-miss loop, your code should be
almost twice as fast.
Marko
--
Marko Rauhamaa mailto:marko@pacujo.net http://pacujo.net/marko/