Re: Get GtkType without creating instance?
- From: Rodrigo Moya <rodrigo gnome-db org>
- To: Neil Conway <nconway klamath dyndns org>
- Cc: gtk-list gnome org
- Subject: Re: Get GtkType without creating instance?
- Date: 18 Oct 2001 12:40:54 +0200
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]