Hi,

Here's another silly question from a newbie!

Im my main window, I want a certain action to take place when another window, called uw, is destroyed.

I have this code in my main window:

private UnitWindow uw;
uw = new UnitWindow (currentUnit, true);
uw.DestroyEvent += new DestroyEventHandler(uwDestroyed);
uw.ShowAll();

(...)

public void uwDestroyed(object o, EventArgs args)
{
 statusbar.Push(1, "Unit stored.");
}

The code compiles, but nothing is ever written in the statusbar. What goes wrong?

Best regards,

Finn Gruwier Larsen
_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to