Combine all the ingredients, except vinegar, in a heavy-based saucepan. Add enough vinegar so that the other ingredients are covered in the pan. Bring to the boil then reduce heat and simmer until the mixture is thick and the fruit and vegetables are soft. Pour into sterilised jars. Seal with sterilised lids and store in a cool place.