From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16368 invoked by alias); 12 May 2003 07:55:58 -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 16283 invoked from network); 12 May 2003 07:55:57 -0000 Received: from unknown (HELO lumo.pacujo.net) (209.77.185.85) by sources.redhat.com with SMTP; 12 May 2003 07:55:57 -0000 Received: (from marko@localhost) by lumo.pacujo.net (8.11.6/8.11.6/SuSE Linux 0.5) id h4C7lii24834; Mon, 12 May 2003 00:47:44 -0700 To: guile-gtk@sources.redhat.com Subject: Re: Fixed memory leaks in gdk-1.2.defs References: <871xz53raq.fsf@zip.com.au> From: Marko Rauhamaa Date: Mon, 12 May 2003 07:55:00 -0000 In-Reply-To: <871xz53raq.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/msg00056.txt.bz2 Kevin Ryde : > Marko Rauhamaa writes: > > > > - gdk-1.2.defs: Indicated that gdk_font_intern and gdk_color_intern are > > now deprecated. (I don't think anybody used them anyway.) > > I've been using them for the purpose described in the README, namely > to get a conversion from a string just once. > > I guess there's other ways to do that, but for upward compatibility > I'd suggest keeping those routines. Aha, didn't think of that. I have submitted this generalization of the scheme: Whenever a 'conversion option is specified for a boxed or struct type, such an "intern" function is generated automatically. However, I have chosen to name the converter function ->type (for example: ->GdkFont, ->GdkColor) for two reasons: - The arrow notation is more descriptive and idiomatic. - The "intern" suffix is actually misleading (no symbol table manipulation is going on). For compatibility reasons I have retained the two "intern" functions but still deprecate them. Marko -- Marko Rauhamaa mailto:marko@pacujo.net http://pacujo.net/marko/