[Gtk-sharp-list] Does Gtk.Dialog respond to Hide()?
Sat, 31 Jan 2004 17:12:22 -0500
----- Original Message -----
From: John BouAntoun <firstname.lastname@example.org>
Date: Friday, January 30, 2004 10:41 pm
Subject: [Gtk-sharp-list] Does Gtk.Dialog respond to Hide()?
> P.S. used the wrong account. Please push this one (with this
> account) thru to mailing list
> 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
You most likely want to take advantage of Gtk.Dialog's built in functionality. That is use Dialog.Run () instead of ShowAll () and then call .Hide () after Run. Looking at any of the other dialogs in MonoDevelop that inherit from Dialog should help you, as they all do this.