[Gtk-sharp-list] (newbie) Changing an image

Shaun ONeil shaun@dog-berry.com
Tue, 24 Feb 2004 20:51:21 -0500


first off, a warning. I'm entirely unfamiliar with C#, gtk/gdk/etc ..
I'm at home with PHP, but I'm desperately trying to get a simple app to
work.

I have an Image, within an EventBox, within a TrayIcon, as such:

EventBox eb = new EventBox ();
eb.Add (new Image (new Gdk.Pixbuf (null, "images/inactive.png")));
TrayIcon t = new TrayIcon ("watch");
t.Add (eb);
t.ShowAll ();

What I can't for the life of me figure out, is how to change the Image
(to images/active.png, fwiw) later on.

Can anyone spare a moment to spare a hint, and/or point me towards some
docs that offer a little more than 'To be added' ?

TIA,
  Shaun