[Monodevelop-patches-list] r2311 - trunk/MonoDevelop/Unused/Gdl
John Luke <jluke@cfl.rr.com>
jluke at mono-cvs.ximian.com
Mon Mar 7 15:38:35 EST 2005
Author: jluke
Date: 2005-03-07 15:38:35 -0500 (Mon, 07 Mar 2005)
New Revision: 2311
Modified:
trunk/MonoDevelop/Unused/Gdl/DockItem.cs
trunk/MonoDevelop/Unused/Gdl/DockMaster.cs
trunk/MonoDevelop/Unused/Gdl/DockPaned.cs
Log:
flush
Modified: trunk/MonoDevelop/Unused/Gdl/DockItem.cs
===================================================================
--- trunk/MonoDevelop/Unused/Gdl/DockItem.cs 2005-03-07 20:02:04 UTC (rev 2310)
+++ trunk/MonoDevelop/Unused/Gdl/DockItem.cs 2005-03-07 20:38:35 UTC (rev 2311)
@@ -744,10 +744,9 @@
if (Visible)
newParent.Show ();
- if (position != DockPlacement.Center && data != null &&
- data is System.Int32) {
- //PORT THIS:
- //g_object_set (G_OBJECT (newParent), "position", g_value_get_uint (other_data), NULL);
+ if (position != DockPlacement.Center && data != null && data is System.Int32) {
+ if (newParent is DockPaned)
+ ((DockPaned) newParent).Position = (int) data;
}
DockObjectFlags &= ~(DockObjectFlags.InReflow);
Modified: trunk/MonoDevelop/Unused/Gdl/DockMaster.cs
===================================================================
--- trunk/MonoDevelop/Unused/Gdl/DockMaster.cs 2005-03-07 20:02:04 UTC (rev 2310)
+++ trunk/MonoDevelop/Unused/Gdl/DockMaster.cs 2005-03-07 20:38:35 UTC (rev 2311)
@@ -93,10 +93,11 @@
{
item.Locked = locked;
if (item.IsCompound) {
- /*PORT THIS: Container.Foreach doesnt take the arg i need it to take.
- gtk_container_foreach (GTK_CONTAINER (item),
- (GtkCallback) ForeachLockUnlock,
- (gpointer) locked);*/
+ foreach (Widget w in item.Children) {
+ DockItem i = w as DockItem;
+ if (i != null)
+ ForeachLockUnlock (i, locked);
+ }
}
}
@@ -106,11 +107,14 @@
if (dock.Root != null && dock.Root is DockItem)
ForeachLockUnlock ((DockItem)dock.Root, locked);
}
- /*PORT THIS:
- // just to be sure hidden items are set too
- gdl_dock_master_foreach (master,
- (GFunc) ForeachLockUnlock,
- (gpointer) locked);*/
+
+ // FIXME: not sure about which list to foreach here
+ // just to be sure hidden items are set too
+ foreach (Widget w in toplevelDocks) {
+ DockItem i = w as DockItem;
+ if (i != null)
+ ForeachLockUnlock (i, locked);
+ }
}
public void Add (DockObject obj)
@@ -118,6 +122,7 @@
if (obj == null)
return;
+ // FIXME: this is possibly wrong
//if (!obj.IsAutomatic) {
/* create a name for the object if it doesn't have one */
if (obj.Name == null)
Modified: trunk/MonoDevelop/Unused/Gdl/DockPaned.cs
===================================================================
--- trunk/MonoDevelop/Unused/Gdl/DockPaned.cs 2005-03-07 20:02:04 UTC (rev 2310)
+++ trunk/MonoDevelop/Unused/Gdl/DockPaned.cs 2005-03-07 20:38:35 UTC (rev 2311)
@@ -9,7 +9,6 @@
public class DockPaned : DockItem
{
private readonly float SplitRatio = 0.3f;
- private bool positionChanged = false;
protected DockPaned (IntPtr raw) : base (raw) { }
@@ -62,7 +61,6 @@
else
Child = new VPaned ();
- // FIXME: track position to emit layout changed
Child.AddNotification ("position", OnNotifyPosition);
Child.Parent = this;
More information about the Monodevelop-patches-list
mailing list