gdk3: avoid needless C -> Ruby type conversion