gtk3: backport from gtk2

From XChangeProperty(3):

> If the specified format is 8, the property data must be a char array.
>
> If the specified format is 16, the property data must be a short array.
>
> If the specified format is 32, the property data must be a long array.