Author: jbevain
Date: 2007-10-11 13:36:23 -0400 (Thu, 11 Oct 2007)
New Revision: 87350

Modified:
   trunk/olive/class/agclr/System.Windows.Media/MediaAttributeCollection.cs
Log:
got it right this time

Modified: 
trunk/olive/class/agclr/System.Windows.Media/MediaAttributeCollection.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/MediaAttributeCollection.cs    
2007-10-11 17:25:16 UTC (rev 87349)
+++ trunk/olive/class/agclr/System.Windows.Media/MediaAttributeCollection.cs    
2007-10-11 17:36:23 UTC (rev 87350)
@@ -43,7 +43,9 @@
 
                public DependencyObject GetItemByName (string attribute_name)
                {
-                       throw new NotImplementedException ();
+                       IntPtr item = 
NativeMethods.media_attribute_collection_get_item_by_name (native, 
attribute_name);
+                       return DependencyObject.Lookup (
+                               NativeMethods.dependency_object_get_object_type 
(item), item);
                }
 
                internal override Kind GetKind ()

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

Reply via email to