With AllTray you can dock any application into the system tray/notification area.
A high-light feature is that a click on the "close" button will minimize to system tray.
It is written in C using GTK and Xlib. It works well with Gnome, KDE and XFCE 4