Update gadget resource.