glib2: use module for common methods