Obtaining all instances of a GType



Hi all.

In Smalltalk, I usually send the 'allInstances' message to a Class
instance to obtain a collection of all the instances of that class. I
use this technique, for example, to obtain all the Window objects with a
given title.

Is there something similar for the GObject system? Something like

GList* instances = g_type_get_all_instances(gtk_window_get_type());

	Thanks

		Giovanni




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