[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Avoiding scm_protect_object
From: |
Andy Wingo |
Subject: |
Re: Avoiding scm_protect_object |
Date: |
Tue, 31 Oct 2006 16:05:59 +0100 |
Hi Gregory,
On Mon, 2006-10-30 at 21:58 -0800, gregory benison wrote:
> One quick question about the new code in gc.c -- is it better to
> export the symbol
> 'scm_init_gnome_gobject_gc', with the "clients" of the code
> responsible for calling that before using
> scm_glib_gc_[un]protect_object, or is it better to have an
> initialization function more like the *_get_type() functions from gtk-
You can't call any guile-gnome function until you have included (gnome
gobject). Strictly speaking there are about 5 parts (gtype, gparam,
gvalue, gobject, gclosure) that you can include individually, but
practically all programs first include (gnome gobject) via the g-wrap
modules. See the other
scm_init_gnome_gobject_{gtype,gobject,gclosure,...} functions and where
they are called (specifically, from {gtype,gobject,gclosure,...}.scm.)
So because this init is called by (gnome gobject gtype) there is no
problem.
Cheers,
Andy.
--
http://wingolog.org/