From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8823 invoked by alias); 25 May 2003 23:28:49 -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 8815 invoked from network); 25 May 2003 23:28:49 -0000 Received: from unknown (HELO lumo.pacujo.net) (209.77.185.85) by sources.redhat.com with SMTP; 25 May 2003 23:28:49 -0000 Received: (from marko@localhost) by lumo.pacujo.net (8.11.6/8.11.6/SuSE Linux 0.5) id h4PNJui11829; Sun, 25 May 2003 16:19:56 -0700 To: guile-gtk@sources.redhat.com 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> From: Marko Rauhamaa Date: Sun, 25 May 2003 23:28:00 -0000 In-Reply-To: <87el2mmymo.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/msg00110.txt.bz2 Kevin Ryde : > Marko Rauhamaa writes: > > > > Kevin Ryde : > > > >> `app' > >> Don't be tempted to define `app' to some sort of widget or the > >> like. In Guile 1.6.4 `app' is used for the implementation of the > >> module system. > > > > What does that mean? > > Exactly what it says. Try defining app to something and then doing a > use-modules. Oh, if you mean: `app' This global symbol is reserved by guile. Don't define it. then better state it that way. I was confused because I didn't know why I would "be tempted to define" it "to some sort of widget". > > I don't know (yet) how much of the whole story needs to be exposed to > > the application developer, but the GTK functions dealing with signals > > come in two C variants: regular and full. The guile code always uses the > > full variant but strips the "-full" suffix from the procedure name. > > I haven't looked closely enough to see if full variants work or can be > usefully used from scheme code. The regular forms are presumably what > will be used most often. There are no scheme procedures for the full variants. (But guile-gtk secretly uses the full variants to implement the plain-vanilla variants.) > > Also: GdkRectangle is a pair of pairs. However, whenever it is an input > > parameter, GdkRectangle is expanded into (x y w h). Thus the > > pair-of-pairs format is used only to return a GdkRectangle. > > That's rather inconsistent, and will probably make life hard if one > wants to pass a returned value on to another function. Some of the inconsistency is there in the C functions themselves. But guile-gtk expands rectangles "consistently" everywhere. The reason is obviously that it's nicer to call (gdk-useful-function window x y w h) than (gdk-useful-function window (cons (cons x y) (cons w h))) Well, you probably need rectangles most often to process exposures. It would be nice to be able to call: (gdk-gc-set-clip-rectangle gc (gdk-event-area e)) instead of (let ((r (gdk-event-area e))) (gdk-gc-set-clip-rectangle (caar r) (cdar r) (cadr r) (cddr r))) Since gdk-gc-set-clip-rectangle was added recently by me (following existing examples), I could change it to take a rectangle. Marko -- Marko Rauhamaa mailto:marko@pacujo.net http://pacujo.net/marko/