From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5394 invoked by alias); 1 Jun 2003 04:31:46 -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 5385 invoked from network); 1 Jun 2003 04:31:45 -0000 Received: from unknown (HELO lumo.pacujo.net) (209.77.185.85) by sources.redhat.com with SMTP; 1 Jun 2003 04:31:45 -0000 Received: (from marko@localhost) by lumo.pacujo.net (8.11.6/8.11.6/SuSE Linux 0.5) id h514MTw13228; Sat, 31 May 2003 21:22:29 -0700 To: guile-gtk@sources.redhat.com CC: mvo@zagadka.de Subject: Re: 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: Marko Rauhamaa Date: Sun, 01 Jun 2003 04:31:00 -0000 In-Reply-To: <873cixnwsz.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/msg00123.txt.bz2 Kevin Ryde : > Marko Rauhamaa writes: > > > > I have now changed all the rectangle-inputting procedures to input > > GdkRectangle's instead of (x,y,w,h). > > That function really wants to be a plain multiple-values thingie, not > have its x,y,w,h transmuted into a rectangle (if I read the code > rightly). > > Propose a new routine in the latter style if you have a burning need > for it, but the function called gdk-window-get-geometry really should > follow the general conventions. I found the origin (no pun intended) of my audaciousness: gdk-window-get-origin was written prior to my time, and it returns (x . y) (i.e., GdkPoint) instead of (x y) as suggested by gint gdk_window_get_origin (GdkWindow *window, gint *x, gint *y); 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. While I could back out on my changes, 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). So it seems to me we are stuck with the deviation. The good side is that the deviation is more natural for scheme programmers. The bad side is that we can't simply refer the application developers to the C documentation. Each guile-gtk function signature needs to be mentioned. Marko -- Marko Rauhamaa mailto:marko@pacujo.net http://pacujo.net/marko/