Melt butter with olive oil in a saute pan. Add onion, cook over low heat and stir often until soft, about 10 minutes. Add wine and sugar; stir occasionally until liquid has evaporated, about 30 minutes. Onions should be sweet to taste and very tender. Add vinegar, time and salt to taste. Continue to cook for about 5 minutes until flavours are blended.