Re: _list_properties works, need one for enums



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.

      Erik Walthinsen <omega temple-baptist com> - System Administrator
        __
       /  \                GStreamer - The only way to stream!
      |    | M E G A        ***** http://gstreamer.net/ *****
      _\  /_





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