glib2: use rbg_define_method() instead of deprecated G_DEF_SETTER