Created
July 26, 2009 18:23
-
-
Save jacksonh/155876 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: class/System.Windows/Mono/Value.cs | |
=================================================================== | |
--- class/System.Windows/Mono/Value.cs (revision 138659) | |
+++ class/System.Windows/Mono/Value.cs (working copy) | |
@@ -385,17 +385,17 @@ | |
if (v is IEasingFunction && !(v is EasingFunctionBase)) | |
v = new EasingFunctionWrapper (v as IEasingFunction); | |
- if (v is DependencyObject) { | |
- DependencyObject dov = (DependencyObject) v; | |
+ if (v is INativeDependencyObjectWrapper) { | |
+ INativeDependencyObjectWrapper dov = (INativeDependencyObjectWrapper) v; | |
- if (dov.native == IntPtr.Zero) | |
+ if (dov.NativeHandle == IntPtr.Zero) | |
throw new Exception (String.Format ( | |
"Object {0} has not set its native property", dov.GetType())); | |
- NativeMethods.event_object_ref (dov.native); | |
+ NativeMethods.event_object_ref (dov.NativeHandle); | |
value.k = dov.GetKind (); | |
- value.u.p = dov.native; | |
+ value.u.p = dov.NativeHandle; | |
} else if (v is DependencyProperty) { | |
value.k = Kind.DEPENDENCYPROPERTY; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment