From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20557 invoked by alias); 2 Jun 2003 23:51:02 -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 20492 invoked from network); 2 Jun 2003 23:51:00 -0000 Received: from unknown (HELO snoopy.pacific.net.au) (61.8.0.36) by sources.redhat.com with SMTP; 2 Jun 2003 23:51:00 -0000 Received: from sunny.pacific.net.au (sunny.pacific.net.au [203.2.228.40]) by snoopy.pacific.net.au (8.12.3/8.12.3/Debian-6.3) with ESMTP id h52NkgPB024130 for ; Tue, 3 Jun 2003 09:50:04 +1000 Received: from wisma.pacific.net.au (wisma.pacific.net.au [210.23.129.72]) by sunny.pacific.net.au with ESMTP id h52NkVQg010275 for ; Tue, 3 Jun 2003 09:46:32 +1000 (EST) Received: from localhost (ppp92.dyn228.pacific.net.au [203.143.228.92]) by wisma.pacific.net.au (8.12.9/8.12.9) with ESMTP id h52NkPYa020962 for ; Tue, 3 Jun 2003 09:46:30 +1000 (EST) Received: from gg by localhost with local (Exim 3.35 #1 (Debian)) id 19MyuU-0002OX-00; Tue, 03 Jun 2003 09:40:14 +1000 To: guile-gtk@sources.redhat.com Subject: gdk-window-get-origin (was: texinfo documentation) References: <87llxd2c59.fsf@zip.com.au> <874r3lmifw.fsf@zip.com.au> <87of1tjjwy.fsf@zip.com.au> <87znldi1wl.fsf@zip.com.au> <87el2mmymo.fsf@zip.com.au> <87smr2lgge.fsf@zip.com.au> <873cixnwsz.fsf@zip.com.au> From: Kevin Ryde Mail-Copies-To: never Date: Mon, 02 Jun 2003 23:51:00 -0000 In-Reply-To: (Marko Rauhamaa's message of "31 May 2003 21:22:29 -0700") Message-ID: <87wug4f3qa.fsf_-_@zip.com.au> User-Agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-q2/txt/msg00132.txt.bz2 Marko Rauhamaa writes: > > gdk-window-get-origin > > was written prior to my time, and it returns (x . y) There are a few such. gdk-window-get-size was the only one I'd been using. I'm going to put the following in the docs. - Function: gdk-window-get-deskrelative-origin window - Function: gdk-window-get-origin window - Function: gdk-window-get-position window - Function: gdk-window-get-root-origin window - Function: gdk-window-get-size window Unlike other multiple-return values functions, these return a pair rather than a list. The `car' is X and the `cdr' is Y. Or for `gdk-window-get-size' the same for WIDTH and HEIGHT. > That precedent led to a whole slew of other analogous GdkPoint routines, > and it was only natural to extend the principle to GdkRectangle as well. I think the above should be regarded as unfortunate departures from the multiple-values convention. > While I could back out on my changes, Please do so. > this one would require a higher > authority. Now, gdk-window-get-origin is not included in my SuSE 7.3 > release (guile-gtk ver. 0.19). Was it ever released out to the public? > It is a vintage function according to the ChangeLog (2001-02-04). They look to me too long established to be changed. > Each guile-gtk function signature needs to be mentioned. The aim, I think, is still that this should not be necessary. Careful attention to uniformity should keep exceptions to a minimum. Even if it does turn out to be worth having each described, it's still got to be highly desirable to have maximum consistency with the corresponding C functions.