gtk3 test: use more Ruby-ish API in test.

G_DEF_CLASS defines both .set_XXX and .XXX= accesssors.