Use G_N_ELEMENTS macro to calculate of array size.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>