To use Gtk2 with POE, you need the POE::Loop::Glib module, which is distributed seperately.
There are a few examples here:
- The same example, but now using libglade and POE::Session::GladeXML2
-There is also a simple ping app
- Tray Icon - Add a tray icon to gnome / kde, and display message balloons