[ADG] New function: adg_enum_report_invalid()
commit0d72bbd27d7a1d46773a7ccf23c5b8caa53e25eb
authorNicola Fontana <ntd@entidi.it>
Sun, 21 Feb 2010 19:49:11 +0000 (21 20:49 +0100)
committerNicola Fontana <ntd@entidi.it>
Sun, 21 Feb 2010 19:49:11 +0000 (21 20:49 +0100)
treea058ba2dbc75d2dcaedca89ccc073591065c32d7
parent0762a62860617e8e646bb43b2b2ada304f39d3c8
[ADG] New function: adg_enum_report_invalid()

A new helper function that generates a warning when an enum value is
not defined by an enum type and returns TRUE if it is the case.

Useful inside setter functions of enum properties to forbid the setting
of invalid values.
adg/adg-util.c
adg/adg-util.h