[MonoDevelop] Does Gtk.Dialog respond to Hide()?

John BouAntoun jba-mono@optusnet.com.au
Sat, 31 Jan 2004 14:40:56 +1100


Hi guys,

I've been trying to glade ReplaceDialog in MonoDevelop.

It used to be a Gtk.Window but no I changed it to Gtk.Dialog (inherits
from window).

For some reason the old close dialog code doesn't work on the
ReplaceDialog when it inherits from Gtk.Dialog instead of Gtk.Window.

Is there something I'm doing wrong or is it a bug in gtk-sharp?

Here is the code that used to work when iheriting from Gtk.Window but
doesn't when inheriting from Gtk.Dialog:

void CloseDialogEvent(object sender, EventArgs e)
{
	Hide();		// This seems to do nothing for dialogs
	OnClosed (null);
}

Help on this would be much appreciated
JBA