gtk_type_foreach?



Hi *,

Is there any reason why there is no gtk_type_foreach function? Something that 
would call g_hash_table_foreach on type_name_2_type_ht in gtktypeutils.c with a 
user-supplied function and gpointer data? This would greatly simplify 
dynamically type-extensible systems, allowing them to find out which types 
exist that are derived from some basic type, for example. (Say, to construct an 
add-a-new-node menu dynamically.)

If there is no such reason (apart from that nobody ever needed one), I'll 
volunteer to write one for gtk+1.0.4/5.

Regards,

Johannes.
--
bibliovorous aj [MF, fr. L, fr.  bibliovorus, fr. Gk biblion book + -vorus 
-vorous] 1: feeding on books and related materials 2: avidly taking in books
as if devouring or consuming - bibliovorously av

Bibliovorous chocophiliac.




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