[Monodevelop-patches-list] r1750 - trunk/MonoDevelop/src/Libraries/Gdl
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Sat Jun 12 18:23:15 EDT 2004
Author: tberman
Date: 2004-06-12 18:23:15 -0400 (Sat, 12 Jun 2004)
New Revision: 1750
Modified:
trunk/MonoDevelop/src/Libraries/Gdl/Dock.cs
trunk/MonoDevelop/src/Libraries/Gdl/DockItem.cs
Log:
impl windowdelete handler, and clean up some flag setting
Modified: trunk/MonoDevelop/src/Libraries/Gdl/Dock.cs
===================================================================
--- trunk/MonoDevelop/src/Libraries/Gdl/Dock.cs 2004-06-12 20:29:56 UTC (rev 1749)
+++ trunk/MonoDevelop/src/Libraries/Gdl/Dock.cs 2004-06-12 22:23:15 UTC (rev 1750)
@@ -62,6 +62,7 @@
}
}
((Gtk.Window)window).Add (this);
+ ((Gtk.Window)window).DeleteEvent += new DeleteEventHandler (floatingDelete);
}
DockObjectFlags |= DockObjectFlags.Attached;
}
@@ -539,5 +540,12 @@
height = e.Event.Height;
e.RetVal = false;
}
+
+ private void floatingDelete (object o, DeleteEventArgs e)
+ {
+ if (root != null)
+ root.HideItem ();
+ e.RetVal = true;
+ }
}
}
Modified: trunk/MonoDevelop/src/Libraries/Gdl/DockItem.cs
===================================================================
--- trunk/MonoDevelop/src/Libraries/Gdl/DockItem.cs 2004-06-12 20:29:56 UTC (rev 1749)
+++ trunk/MonoDevelop/src/Libraries/Gdl/DockItem.cs 2004-06-12 22:23:15 UTC (rev 1750)
@@ -81,7 +81,7 @@
g_object_notify (g_object, "locked");
gdl_dock_item_showhide_grip (item);
*/
- }
+ }
}
}
@@ -362,7 +362,7 @@
protected override void OnMapped ()
{
- Flags |= (int)WidgetFlags.Mapped;
+ SetFlag (WidgetFlags.Mapped);
GdkWindow.Show ();
@@ -374,7 +374,7 @@
protected override void OnUnmapped ()
{
- Flags &= ~((int)WidgetFlags.Mapped);
+ ClearFlag (WidgetFlags.Mapped);
GdkWindow.Hide ();
More information about the Monodevelop-patches-list
mailing list