Re: _list_properties works, need one for enums
- From: James Henstridge <james daa com au>
- To: Erik Walthinsen <omega temple-baptist com>
- Cc: <gtk-devel-list gnome org>
- Subject: Re: _list_properties works, need one for enums
- Date: Mon, 25 Jun 2001 10:08:51 +0800 (WST)
On Sun, 24 Jun 2001, Erik Walthinsen wrote:
> On Mon, 25 Jun 2001, James Henstridge wrote:
>
> > Get the GEnumClass for the type with g_type_class_ref, and then look at
> > the class->values array. Note that you can use the
> > g_enum_get_value_by_{name,nick} functions to lookup enum values as well.
> > Remember to g_type_class_unref the class after you are finished.
>
> Yes, but GEnumClass is an opaque type, like everything else. By
> definition there should be an accessor to get ahold of the list.
Doesn't look all that private from the genums.h header.
James.
--
Email: james daa com au
WWW: http://www.daa.com.au/~james/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]