Port EmpathyMainWindow to new API