glib2: use the same abstraction level in the same method