[MonoDevelop] What is the correct way of closing a Gtk dialog?
cdhowie at gmail.com
Thu May 22 08:41:30 EDT 2008
On Thu, May 22, 2008 at 7:15 AM, simon.n.lindgren at gmail.com
<simon.n.lindgren at gmail.com> wrote:
> I have created a dialog that I show to the user to get an input value.
> How do I close the dialog in the correct way when the user clicks one of
> the buttons in the dialog?
> Currently I'm using the Destroy() method but that's not correct, is it?
> I'm using C# and gtk-sharp.
That is the correct way to close and dispose of all of the resources
associated with a GObject, yes, and it works for GTK windows too.
(Personally, I've always wondered why GObject doesn't implement
IDisposable, but that's another discussion.)
More information about the Monodevelop-list