Re: gtk_type_foreach?



On 15 Sep 1998, Marius Vollmer wrote:

> johannes@nada.kth.se (Johannes Keukelaar) writes:
> 
> > Is there any reason why there is no gtk_type_foreach function?
> 
> Hmm.  I'm not saying that such a function wouldn't be useful, but you
> must be aware that most types are dynamically added to the type
> system.  You will only find GtkFileSelection in the type list after at
> least one GtkFileSelection widget has been created.  (Types are never
> removed from the system, tho.)

I could probably find a use for this sort of thing too, but, exactly as
Tim Janik describes, it is better implemented with a "hook" function that
allows the programmer to get notified when new types are created. 

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




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