From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10377 invoked by alias); 24 May 2003 00:11:09 -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 10359 invoked from network); 24 May 2003 00:11:08 -0000 Received: from unknown (HELO lumo.pacujo.net) (209.77.185.85) by sources.redhat.com with SMTP; 24 May 2003 00:11:08 -0000 Received: (from marko@localhost) by lumo.pacujo.net (8.11.6/8.11.6/SuSE Linux 0.5) id h4O02LZ31400; Fri, 23 May 2003 17:02:21 -0700 To: guile-gtk@sources.redhat.com Subject: Re: Selection and DND completed References: <87d6i9miga.fsf@zip.com.au> <874r3lkzbd.fsf@zip.com.au> From: Marko Rauhamaa Date: Sat, 24 May 2003 00:11:00 -0000 In-Reply-To: <874r3lkzbd.fsf@zip.com.au> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-q2/txt/msg00101.txt.bz2 Kevin Ryde : > Marko Rauhamaa 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/