OK, you just forgot to tell us where this piece of code goes...
Sorry for the late reply.
This goes anywhere you want to add a web part. So for me that was done in a feature activation handler.
YOU ROCK. Only guy on the net that has a post about changing the toolbar type .. awesome thanks