Fixes SIGSEGV by not using g_object_set (Closes: #581337)