X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=plugins%2Fdali-sharp%2Fsharp%2Finternal%2FViewRegistry.cs;h=70d50014f83586187bd90e4c125511d096358e56;hp=a3592971d151e9c64d06c3c6f16a6e6618edcae2;hb=030fbd95bbe4b0e7fcd55fecfcfb9f940ab505bd;hpb=d375dceca213569317d81d17cd2d2a4b45122cda diff --git a/plugins/dali-sharp/sharp/internal/ViewRegistry.cs b/plugins/dali-sharp/sharp/internal/ViewRegistry.cs index a359297..70d5001 100755 --- a/plugins/dali-sharp/sharp/internal/ViewRegistry.cs +++ b/plugins/dali-sharp/sharp/internal/ViewRegistry.cs @@ -216,7 +216,7 @@ namespace Dali { // Create the control CustomView newControl = controlConstructor (); - return newControl.GetPtrfromActor(); // return pointer to handle + return newControl.GetPtrfromView(); // return pointer to handle } else { @@ -287,18 +287,18 @@ namespace Dali } } - public static View GetViewFromActor( Actor actor ) + public static View GetViewFromActor( View view ) { // we store a dictionary of ref-obects (C++ land) to custom views (C# land) - RefObject refObj = actor.GetObjectPtr (); + RefObject refObj = view.GetObjectPtr (); IntPtr refObjectPtr = (IntPtr) RefObject.getCPtr(refObj); WeakReference viewReference; if ( Instance._controlMap.TryGetValue ( refObjectPtr, out viewReference) ) { - View view = viewReference.Target as View; - return view; + View retview = viewReference.Target as View; + return retview; } else {