Tray Icon application to PowerOff / Reboot computer
darcs get http://code.haskell.org/traypoweroff
Put in sudoers the permisse to execute poweroff and shutdown:
myuser ALL=(ALL) NOPASSWD: /sbin/poweroff
myuser ALL=(ALL) NOPASSWD: /sbin/reboot
Put in a init file the traypoweroff program (e.g: ~/.xsession). Example:
traypoweroff &