On 11/18/2013 05:52 AM, Steve Teale wrote:

I am trying to extract a list of properties from a gtk.TextTag. I know what properties can be there, because they are listed in the GTK documentation, but I'd prefer to not query all of them just to find out if they are there. Or maybe they are all there in every TextTag, just not used, as per the hint given by the existence of propname-set properties?

TextTag is derived from ObjectG, which defines the method for getting properties. Is there any way I can get the list of property names from an ObjectG instance?

classListProperties looks promising, but TextTag does not appear to be an instance of GObjectClass.

Thanks
Steve

The GObjectClass or the derived variants like GtkTextTagClass are part
of GObjects implementation of a virtual function table. And everything
derived from GObject has one.

classListProperties(getInstanceClass!GObjectClass(textTag));

getInstanceClass is in gobject.Type.

As far as i know this will return all the documented properties since
they always have an default value.