Skip to content

plugin: cleanup boilerplate code & document

Niels De Graef requested to merge wip/nielsdg/cleanup-plugin-boilerplate into master

Now that MetaPlugin uses G_DECLARE_DERIVABLE_TYPE, we can get rid of some GObject boilerplate by using G_DECLARE_FINAL_TYPE.

Also follow a convention to put the _class_init and _init functions at the bottom, so we don't have to declare each vfunc override at the top.

Finally, I added some documentation at the top so people who have no idea about Mutter and its plugin system know how it works.

Merge request reports