[Monodevelop-patches-list] r1751 - trunk/MonoDevelop/src/Libraries/Gdl
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Sat Jun 12 19:16:40 EDT 2004
Author: tberman
Date: 2004-06-12 19:16:40 -0400 (Sat, 12 Jun 2004)
New Revision: 1751
Modified:
trunk/MonoDevelop/src/Libraries/Gdl/Dock.cs
Log:
implement Dock.OnDestroyed, need to to that for the rest of the objects.
fix error in last commit.
Modified: trunk/MonoDevelop/src/Libraries/Gdl/Dock.cs
===================================================================
--- trunk/MonoDevelop/src/Libraries/Gdl/Dock.cs 2004-06-12 22:23:15 UTC (rev 1750)
+++ trunk/MonoDevelop/src/Libraries/Gdl/Dock.cs 2004-06-12 23:16:40 UTC (rev 1751)
@@ -231,6 +231,18 @@
}
}
}
+
+ protected override void OnDestroyed ()
+ {
+ if (window != null) {
+ window.Destroy ();
+ floating = false;
+ window = null;
+ }
+ if (xorGC != null)
+ xorGC = null;
+ base.OnDestroyed ();
+ }
protected override void OnAdded (Widget widget)
{
@@ -270,7 +282,7 @@
{
if (root != null)
return;
-
+
if (IsAutomatic) {
Destroy ();
} else if (!IsAttached) {
@@ -544,7 +556,7 @@
private void floatingDelete (object o, DeleteEventArgs e)
{
if (root != null)
- root.HideItem ();
+ ((DockItem)root).HideItem ();
e.RetVal = true;
}
}
More information about the Monodevelop-patches-list
mailing list