Got bored this evening and sick of hearing people ask about the egg trayicon, so I decided to implement it in completely managed code, free of a libegg or glue library dependency.
The code is available here.
Build it with "mcs -pkg:gtk-sharp TrayIcon.cs". However, there are two relatively large bits of code unported from the C libegg tray icon, and it hasn't been tested at all outside of my little testing. If you get a DllNotFound exception about gdk-x11-2.0, make sure you install the appropriate -devel packages.
I will be talking to Mike about putting this into gtk# somewhere and finishing it up and cleaning it a bit (like removing the -devel requirement) so we can get a nice new widget in gtk# 2.0
Posted by tberman at January 6, 2005 07:27 AM