[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 b3b4685219e912edcead65ef71f7d94a85390cfa..52a761b0ad9c2359c5aba35ed348292b7835a150 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 fee3f65f45be9086c4eaaadbdfd2470e7f0884d1..9799fcd5b5559c268608ca4f7e72d3f567a87570 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) =>
                     {