[ Version ( since = "1.46" ) ]
public static Type get_enum_property_type (Type setting_type, string property_name)
Get the type of the enum that defines the values that the property accepts.
It is only useful for properties configured to accept values from certain enum type, otherwise it will return g_type_invalid. Note that flags (children of G_TYPE_FLAGS) are also considered enums.
Note that the GObject property might be implemented as an integer, actually, and not as enum. Find out what underlying type is used, checking the ParamSpec, before setting the GObject property.
| setting_type |
the GType of the NMSetting instance |
| property_name |
the name of the property |
|
the enum's GType, or g_type_invalid if the property is not of enum type |