[EflSharp] Fix constructor of MoreOption and RotarySelector (#959)
authorjaehyun0cho <jaehyun0cho@gmail.com>
Fri, 2 Aug 2019 08:12:35 +0000 (17:12 +0900)
committerarosis78 <jh0506.yun@samsung.com>
Fri, 2 Aug 2019 08:12:35 +0000 (17:12 +0900)
Now, EoWrapper does not have constructor with parameter IntPtr.
Instead, EoWrapper has constructors with paramater ConstructingHandle
and WrappingHandle.

Since ConstructingHandle is created internally, the constructor with
parameter ConstructingHandle should be used for internal usage.
Instead, constructor with parameter WrappingHandle should be used to use
C native handle (i.e. eo pointer in C).

internals/src/EflSharp/EflSharp/Circle/MoreOption.cs
internals/src/EflSharp/EflSharp/Circle/RotarySelector.cs

index b3b4685..52a761b 100755 (executable)
@@ -48,7 +48,7 @@ namespace Efl
                 /// </summary>
                 /// <param name="parent">The Efl.Ui.Widget to which the new MoreOption will be attached as a child.</param>
                 /// <since_tizen> 6 </since_tizen>
-                public MoreOption(Efl.Ui.Widget parent) : base(new ConstructingHandle(Interop.Eext.eext_more_option_add(parent.NativeHandle)))
+                public MoreOption(Efl.Ui.Widget parent) : base(new Efl.Eo.Globals.WrappingHandle(Interop.Eext.eext_more_option_add(parent.NativeHandle)))
                 {
                     smartClicked = new Interop.Evas.SmartCallback((d, o, e) =>
                     {
index fee3f65..9799fcd 100755 (executable)
@@ -102,7 +102,7 @@ namespace Efl
                 /// </summary>
                 /// <param name="parent">The Efl.Ui.Widget to which the new RotarySelector will be attached as a child.</param>
                 /// <since_tizen> 6 </since_tizen>
-                public RotarySelector(Efl.Ui.Widget parent) : base(new ConstructingHandle(Interop.Eext.eext_rotary_selector_add(parent.NativeHandle)))
+                public RotarySelector(Efl.Ui.Widget parent) : base(new Efl.Eo.Globals.WrappingHandle(Interop.Eext.eext_rotary_selector_add(parent.NativeHandle)))
                 {
                     smartClicked = new Interop.Evas.SmartCallback((d, o, e) =>
                     {