summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2008-11-27 14:07:09 -0500
committerDavid Zeuthen <davidz@redhat.com>2008-11-27 14:07:09 -0500
commitceeec8c62c76e0ff09985ba1a6f1023250d27f66 (patch)
tree8c1aa691db50124376a3f05079d9990f9be82bc2 /configure.ac
parentf7a39400ec9fd87827b0d17b0599839fad63b496 (diff)
generate convenience function for overriding properties
Complete with gtk-doc for easy cut-n-paste for the implementer /** * test_tweak_override_properties: * @klass: The class structure for a class deriving from #GObject and implementing #TestTweak. * @property_id_begin: Property ID of first property to override. * * Convenience function to override properties for a #GObject derived class implementing #TestTweak. * * Typical usage of this function is: * |[ * enum * { * PROP_0 * PROP_SOME_UNRELATED_PROPERTY, * PROP_ANOTHER_UNRELATED_PROPERTY, * ... * * /<!-- -->* Properties from the TestTweak interface *<!-- -->/ * PROP_TEST_TWEAK_FOO, * PROP_TEST_TWEAK_BAR, * PROP_TEST_TWEAK_BAZ, * PROP_TEST_TWEAK_SOME_READ_WRITE_PROPERTY, * * ... * }; * ]| * * and then in the <literal>class_init</literal> function: * |[ * g_assert (test_tweak_override_properties (gobject_class, PROP_TEST_TWEAK_FOO) == PROP_TEST_TWEAK_SOME_READ_WRITE_PROPERTY); * ]| * * Returns: Property ID of the last overridden property. **/
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions