Ubuntu indicator boilerplate

As I was working on the do-not-disturb indicator, I put together a simple applet which should serve two purposes - first as a tutorial, and as a boilerplate for other indicators. The developer documentation on this topic could use some work, and this example attempts to gather various bits and pieces I put together from searching on Google, StackOverflow and AskUbuntu. The gist demonstrates building an indicator, showing and updating desktop notifications and some basic PyGTK to create menu items and handle callbacks.

The code contains extensive comments and should be easy to understand, and I hope it helps anybody trying to build their own indicator applets. If you have any questions or suggestions, let me know.