Re: [gtk-list] Re: Interpreter requests



Kenneth Albanowski <kjahds@kjahds.com> writes:

> Are you sure enums cannot be created at run-time? I assure you that I'll
> try, regardless of your intentions. :-) (Come to that, authors of external
> widgets will be doing this, regardless.)

Yes, that is true, and I know at least one guy who is doing this already.
 
> I'm thinking of something like this:
> 
>    typedef void (*GtkTypeCreationHook)(GtkType new_type);
> 
>    gtk_type_add_creation_hook(GtkTypeCreationHook * hook);

Wouldn't it be enough that you do your actions that would be triggered
by that hook, when you first learn about the type (i.e. when you find
it in a GtkArg structure or somewhere)?



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