GNOME Bugzilla – Bug 578018
use G_DEFINE_TYPE and similar macros
Last modified: 2011-05-02 00:57:41 UTC
There's just a few places remaining that we register types directly. The hardest one to change is the interface registrations in pangocairo. Apart from that, most other places use PANGO_DEFINE_TYPE, so we should just switch that.
Created attachment 159129 [details] [review] Use G_DEFINE_INTERFACE for PangoCairoFont and PangoCairoFontMap
Could this get a review, please?
Does this change the gobject name of the interface? Do we care?
I used a typedef for that. This is the same thing we did in glib and gtk to not change all the names in the source code
Go ahead then. Are you also doing PANGO_DEFINE_TYPE to G_DEFINE_TYPE conversion?
Created attachment 186931 [details] [review] pango/modules.c: Use G_DEFINE_TYPE instead custom macro
Thanks Javier.