Re: adding deps to libgnomecanvas



Hi Alex,

On Mon, 29 Oct 2001, Alex Larsson wrote:
> Do we really have to make GnomeCanvas depend on libglade? Could we not
> just add gnome_register_type_name() somewhere, and call

        Not really as Tim says.

>  gnome_register_type_name ("GnomeCanvas", gnome_canvas_get_type);

        Just a:

void
gnome_canvas_init (void)
{
        gnome_canvas_get_type ();
}

        Would do - but as everyone knows registering types you don't need
is expensive, and init functions are evil :-) which is why the proposal is
not very pleasant in general.

        Regards,

                Michael.

-- 
 mmeeks gnu org  <><, Pseudo Engineer, itinerant idiot




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]