Added function to restore a saved value to a widget.