Re: GtkType defined in a gmodule?
- From: Havoc Pennington <hp redhat com>
- To: Maciej Stachowiak <mjs eazel com>
- Cc: timj redhat com, gtk-list gnome org
- Subject: Re: GtkType defined in a gmodule?
- Date: 26 Jan 2001 11:41:59 -0500
Maciej Stachowiak <mjs eazel com> writes:
> What's the right way to handle a GtkType that's defined in a loadable
> module that can get unloaded and reloaded multiple times? There's no
> way to remove an existing GtkType, so the module can't clean up on
> exit. However, from what I can see reusing the type by using
> gtk_type_from_name to get it is not really safe, since the GtkTypeNode
> contains pointers to things that could have changed addresses in the
> process of unloading and reloading the library. But there does not
> appear to be a way to change the already created GtkType either.
>
> Is there no way to do this right? If so, the implications for shlib
> Bonobo components are very unfortunate.
>
> If there is a way to do it I'd appreciate pointers.
>
libgobject has a lot of provisions for this, it involved some pretty
nontrivial changes to the type system design I believe.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]