Re: Obtaining all instances of a GType



On Wed, Jul 16, 2003 at 01:57:09PM +0200, Giovanni Corriga wrote: 
> Is there something similar for the GObject system? Something like
> 
> GList* instances = g_type_get_all_instances(gtk_window_get_type());

No, a list of instances isn't kept. However GtkWindow instances
specifically are tracked by GTK, see gtk_window_list_toplevels().

Havoc



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