Author: mhutch
Date: 2008-02-12 13:08:21 -0500 (Tue, 12 Feb 2008)
New Revision: 95537
Modified:
trunk/monodevelop/main/src/core/MonoDevelop.Core.Gui/ChangeLog
trunk/monodevelop/main/src/core/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.Dialogs/TreeViewOptions.cs
Log:
* MonoDevelop.Core.Gui.Dialogs/TreeViewOptions.cs: Make TreeViewOptions
implement IDisposable.
Modified: trunk/monodevelop/main/src/core/MonoDevelop.Core.Gui/ChangeLog
===================================================================
--- trunk/monodevelop/main/src/core/MonoDevelop.Core.Gui/ChangeLog
2008-02-12 18:03:51 UTC (rev 95536)
+++ trunk/monodevelop/main/src/core/MonoDevelop.Core.Gui/ChangeLog
2008-02-12 18:08:21 UTC (rev 95537)
@@ -1,3 +1,8 @@
+2008-02-12 Michael Hutchinson <[EMAIL PROTECTED]>
+
+ * MonoDevelop.Core.Gui.Dialogs/TreeViewOptions.cs: Make TreeViewOptions
+ implement IDisposable.
+
2008-02-01 Michael Hutchinson <[EMAIL PROTECTED]>
* Makefile.am:
Modified:
trunk/monodevelop/main/src/core/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.Dialogs/TreeViewOptions.cs
===================================================================
---
trunk/monodevelop/main/src/core/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.Dialogs/TreeViewOptions.cs
2008-02-12 18:03:51 UTC (rev 95536)
+++
trunk/monodevelop/main/src/core/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.Dialogs/TreeViewOptions.cs
2008-02-12 18:08:21 UTC (rev 95537)
@@ -34,7 +34,8 @@
/// TreeView options are used, when more options will be edited (for
something like
/// IDE Options + Plugin Options)
/// </summary>
- public class TreeViewOptions {
+ public class TreeViewOptions : IDisposable
+ {
List<IDialogPanel> optionPanels = new List<IDialogPanel> ();
protected Properties properties = null;
CommandManager cmdManager;
@@ -248,5 +249,14 @@
// do nothing. this is need to wire up button release
event for ProjectOptionsDialog
}
+ public void Dispose ()
+ {
+ if (TreeViewOptionDialog != null) {
+ TreeViewOptionDialog.Destroy ();
+ TreeViewOptionDialog.Dispose ();
+ TreeViewOptionDialog = null;
+ }
+ }
+
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches