Skip to content

monitor: fix object construction and constructor function

GObject construct functions (i.e. Manette.Monitor.new()) should not do setup that isn't performed by bindings when constructing objects (i.e. new Manette.Monitor()).

Move the object setup from Manette.Monitor.new() to init(), and connect to the mapping monitor with g_signal_connect_object(), to avoid potential lifetime issues.

Edited by Andy Holmes

Merge request reports