Author: lluis
Date: 2007-01-12 10:30:41 -0500 (Fri, 12 Jan 2007)
New Revision: 70925

Added:
   trunk/stetic/libsteticui/ContainerUndoRedoManager.cs
Modified:
   trunk/stetic/ChangeLog
Log:
* libsteticui/ContainerUndoRedoManager.cs: Added missing file.

Modified: trunk/stetic/ChangeLog
===================================================================
--- trunk/stetic/ChangeLog      2007-01-12 15:28:57 UTC (rev 70924)
+++ trunk/stetic/ChangeLog      2007-01-12 15:30:41 UTC (rev 70925)
@@ -1,5 +1,9 @@
 2007-01-12  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
 
+       * libsteticui/ContainerUndoRedoManager.cs: Added missing file.
+
+2007-01-12  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
+
        * libsteticui/WidgetEditSession.cs: When saving the designer session,
          instead of deleting the old widget and adding the new one, update
          the existing widget.

Added: trunk/stetic/libsteticui/ContainerUndoRedoManager.cs
===================================================================
--- trunk/stetic/libsteticui/ContainerUndoRedoManager.cs        2007-01-12 
15:28:57 UTC (rev 70924)
+++ trunk/stetic/libsteticui/ContainerUndoRedoManager.cs        2007-01-12 
15:30:41 UTC (rev 70925)
@@ -0,0 +1,18 @@
+
+using System;
+using System.Xml;
+using System.Collections;
+
+namespace Stetic
+{
+       class ContainerUndoRedoManager: UndoRedoManager
+       {
+               protected override object GetDiff (ObjectWrapper w)
+               {
+                       // Only track changes in widgets.
+                       Wrapper.Widget widget = w as Wrapper.Widget;
+                       if (widget != null) return w.GetUndoDiff ();
+                       else return null;
+               }
+       }
+}

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to