[Gtk-sharp-list] DestroyEvent
Finn Gruwier Larsen
finn at gruwier.dk
Fri Mar 17 15:10:04 EST 2006
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
More information about the Gtk-sharp-list
mailing list