dock-applets: add toggleApplet method