glib2: fix wrong enum constant value

Normally enum is defined in order (0, 1, 2, 3, ...) but sometimes some
values are skipped (0, 2, 7, 10, ...).