Re: [gtk-list] Re: Interpreter requests



On Tue, 9 Jun 1998, Tim Janik wrote:

> > Looks good to me. The only thing I'd want to add would be a hook to type
> > creation, so that I can be notified whenever a new enum is added to the
> > system, giving me a chance to read its values and add it to my management
> > system.
> 
> all enums are created with gtk_type_init () which is called from gtk_init();

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.)

I'm thinking of something like this:

   typedef void (*GtkTypeCreationHook)(GtkType new_type);

   gtk_type_add_creation_hook(GtkTypeCreationHook * hook);

When this function is invoked, it'll immediately call the hook function
with all present types (including these ever-so-interesting enums), and
then also invoke it when new types are added with gtk_type_unique().

-- 
Kenneth Albanowski (kjahds@kjahds.com, CIS: 70705,126)




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