Author: toshok
Date: 2007-06-13 19:39:43 -0400 (Wed, 13 Jun 2007)
New Revision: 79528

Modified:
   trunk/moon/src/ChangeLog
   trunk/moon/src/clock.cpp
   trunk/moon/src/runtime.h
   trunk/moon/src/xaml.cpp
Log:
2007-06-13  Chris Toshok  <[EMAIL PROTECTED]>

        * clock.cpp (AddChild): just pass the child, unwrapped.

        * runtime.h: remove the Value* overloads for Collection::Add and
        Collection::Remove.

        * xaml.cpp (dependency_object_add_child): just pass the dependency
        object, unwrapped.



Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog    2007-06-13 23:38:38 UTC (rev 79527)
+++ trunk/moon/src/ChangeLog    2007-06-13 23:39:43 UTC (rev 79528)
@@ -1,3 +1,13 @@
+2007-06-13  Chris Toshok  <[EMAIL PROTECTED]>
+
+       * clock.cpp (AddChild): just pass the child, unwrapped.
+
+       * runtime.h: remove the Value* overloads for Collection::Add and
+       Collection::Remove.
+
+       * xaml.cpp (dependency_object_add_child): just pass the dependency
+       object, unwrapped.
+
 2007-06-13  Jeffrey Stedfast  <[EMAIL PROTECTED]>
 
        * text.cpp: Implemented a ton of stuff...

Modified: trunk/moon/src/clock.cpp
===================================================================
--- trunk/moon/src/clock.cpp    2007-06-13 23:38:38 UTC (rev 79527)
+++ trunk/moon/src/clock.cpp    2007-06-13 23:39:43 UTC (rev 79528)
@@ -507,8 +507,7 @@
 void
 TimelineGroup::AddChild (Timeline *child)
 {
-       Value fv = Value(child);
-       child_timelines->Add (&fv);
+       child_timelines->Add (child);
 }
 
 void

Modified: trunk/moon/src/runtime.h
===================================================================
--- trunk/moon/src/runtime.h    2007-06-13 23:38:38 UTC (rev 79527)
+++ trunk/moon/src/runtime.h    2007-06-13 23:39:43 UTC (rev 79528)
@@ -378,9 +378,6 @@
 
        virtual void Add    (DependencyObject *data);
        virtual void Remove (DependencyObject *data);
-
-       void Add    (Value *v) { Add (v->AsDependencyObject ()); };
-       void Remove (Value *v) { Remove (v->AsDependencyObject ()); };
 };
 
 void collection_add    (Collection *collection, DependencyObject *data);
@@ -417,7 +414,6 @@
 
        virtual void Add    (DependencyObject *data);
        virtual void Remove (DependencyObject *data);
-       
 };
 
 class StrokeCollection : public Collection {
@@ -427,7 +423,6 @@
 
        virtual void Add    (DependencyObject *data);
        virtual void Remove (DependencyObject *data);
-       
 };
 
 class StylusPointCollection : public Collection {
@@ -437,7 +432,6 @@
 
        virtual void Add    (DependencyObject *data);
        virtual void Remove (DependencyObject *data);
-       
 };
 
 class TimelineMarkerCollection : public Collection {
@@ -447,7 +441,6 @@
 
        virtual void Add    (DependencyObject *data);
        virtual void Remove (DependencyObject *data);
-       
 };
 
 class MediaAttributeCollection : public Collection {
@@ -457,7 +450,6 @@
 
        virtual void Add    (DependencyObject *data);
        virtual void Remove (DependencyObject *data);
-       
 };
 
 class Inlines : public Collection {
@@ -467,7 +459,6 @@
 
        virtual void Add    (DependencyObject *data);
        virtual void Remove (DependencyObject *data);
-       
 };
 
 

Modified: trunk/moon/src/xaml.cpp
===================================================================
--- trunk/moon/src/xaml.cpp     2007-06-13 23:38:38 UTC (rev 79527)
+++ trunk/moon/src/xaml.cpp     2007-06-13 23:39:43 UTC (rev 79528)
@@ -865,17 +865,14 @@
                DependencyObject *obj = (DependencyObject *) 
parent->parent->item;
                Value *col_v = obj->GetValue (dep);
                Collection *col = (Collection *) col_v->AsCollection ();
-               Value v = Value ((DependencyObject *) child->item);
-
-               col->Add (&v);
+               col->Add ((DependencyObject*)child->item);
                return;
        }
 
        if (is_instance_of (parent, Value::COLLECTION)) {
                Collection *col = (Collection *) parent->item;
-               Value v = Value ((DependencyObject *) child->item);
 
-               col->Add (&v);
+               col->Add ((DependencyObject *) child->item);
                return;
        }
 
@@ -893,9 +890,7 @@
                                DependencyObject *obj = (DependencyObject *) 
parent->item;
                                Value *col_v = obj->GetValue (dep);
                                Collection *col = (Collection *) 
col_v->AsCollection ();
-                               Value v = Value ((DependencyObject *) 
child->item);
-
-                               col->Add (&v);
+                               col->Add ((DependencyObject *) child->item);
                                return;
                        }
                }

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

Reply via email to