From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20365 invoked by alias); 9 May 2003 10:09:22 -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 20312 invoked from network); 9 May 2003 10:09:21 -0000 Received: from unknown (HELO lumo.pacujo.net) (209.77.185.85) by sources.redhat.com with SMTP; 9 May 2003 10:09:21 -0000 Received: (from marko@localhost) by lumo.pacujo.net (8.11.6/8.11.6/SuSE Linux 0.5) id h49A1Gv04844; Fri, 9 May 2003 03:01:16 -0700 To: guile-gtk@sources.redhat.com Subject: Introduced destructors and finalized GdkCursor From: Marko Rauhamaa Date: Fri, 09 May 2003 10:09:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-q2/txt/msg00041.txt.bz2 Summary: Introduced destructors and finalized GdkCursor. Details: - build-guile-gtk-1.2: The defs files didn't specify destructors. Instead, the garbage collector was trusted to release resources. This is the right strategy as long as the resource is a piece of client RAM. However, we must release X server resources as soon as they are no longer needed. I have now introduced a new option for define-boxed and define-struct: (physical #t). When set, the function specified in the free option becomes callable from guile code. The proxy object stays alive, but any reference to it causes an assertion to fail. - gdk-1.2.defs: As a first application of destructors, I added the (physical #t) option to GdkCursor. Marko -- Marko Rauhamaa mailto:marko@pacujo.net http://pacujo.net/marko/