Small library created by pulling some code from indicator-applet
