I am modifying the code of Transmission to include a crude menulet. As of now it only displays the upload and download speed, pause all torrents, resume all torrents, toggle the speed limit and bring up some of the Transmission windows. The one problem I am having is that if i hide the app or minimize it and then use the menulet to bring up the main Transmission it does not come to the front. I have done some basic searching but could not find anything. What code would i need to add to make the window come to the front when selecting it from the menulet.