A man accused of murdering his partner, triggering a gas explosion which caused a "mini-earthquake", a court has heard.