Re: Get GtkType without creating instance?



On Thu, 2001-10-18 at 07:32, Neil Conway wrote:
> Hi all,
> 
> How do I get the GtkType for a specific sub-class GtkObject, without
> first needing to create an instance of that GtkObject and then use
> GTK_OBJECT_TYPE(obj) ?
> 
you can just call the _get_type function for that class, which will
register the type, if it's not yet registered, and return it.

cheers
-- 
Rodrigo Moya <rodrigo gnome-db org> - <rodrigo ximian com>
http://www.gnome-db.org/ - http://www.ximian.com/



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