This is like G_DECLARE_FINAL_TYPE(), except it doesn't make the class struct public, so internally all the subclassing in the world can happen. Some subtle differences: - It marks the get_type() function as G_GNUC_CONST - It doesn't require the parent type - It uses G_DEFINE_AUTOPTR_CLEANUP_FUNC() instead of the private glib chainup method. Port a bunch of GDK and the whole event controller + gesture machinery to provew that it works. As a side effect, we gained a bunch of missing autocleanups.
1.6 KiB
1.6 KiB