[ElmSharp] fixed to parent.Handle for preventing potential bug (#173) (#195)
authorarosis78 <35049857+arosis78@users.noreply.github.com>
Tue, 3 Apr 2018 01:33:29 +0000 (10:33 +0900)
committerGitHub <noreply@github.com>
Tue, 3 Apr 2018 01:33:29 +0000 (10:33 +0900)
src/ElmSharp/ElmSharp/GestureLayer.cs
src/ElmSharp/ElmSharp/Image.cs
src/ElmSharp/ElmSharp/Naviframe.cs
src/ElmSharp/ElmSharp/Panel.cs
src/ElmSharp/ElmSharp/Table.cs

index c748fec6d41696b479cd1b8cb91f210c7a6a96a9..3e586ac88cc5cf7ef0183ab66d93f21ad2ee6dda 100644 (file)
@@ -531,7 +531,7 @@ namespace ElmSharp
         /// <since_tizen> preview </since_tizen>
         protected override IntPtr CreateHandle(EvasObject parent)
         {
-            return Interop.Elementary.elm_gesture_layer_add(parent);
+            return Interop.Elementary.elm_gesture_layer_add(parent.Handle);
         }
 
         /// <summary>
@@ -905,4 +905,4 @@ namespace ElmSharp
             }
         }
     }
-}
\ No newline at end of file
+}
index ce8aa23d35e0608b296357ac8e5ffdab97c64f10..c740e1d286eeae49a38f4085054703a08359011d 100644 (file)
@@ -673,7 +673,7 @@ namespace ElmSharp
         /// <since_tizen> preview </since_tizen>
         protected override IntPtr CreateHandle(EvasObject parent)
         {
-            IntPtr handle = Interop.Elementary.elm_layout_add(parent);
+            IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);
             Interop.Elementary.elm_layout_theme_set(handle, "layout", "background", "default");
 
             RealHandle = Interop.Elementary.elm_image_add(handle);
@@ -751,4 +751,4 @@ namespace ElmSharp
         /// </summary>
         FlipTransverse
     }
-}
\ No newline at end of file
+}
index a3f0ef2656a10c30c3ab36cf2497d7f3c49eedf2..89abd6860e0119ff490150b95e89e5bd5724f040 100755 (executable)
@@ -263,7 +263,7 @@ namespace ElmSharp
         /// <since_tizen> preview </since_tizen>
         protected override IntPtr CreateHandle(EvasObject parent)
         {
-            IntPtr handle = Interop.Elementary.elm_layout_add(parent);
+            IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);
             Interop.Elementary.elm_layout_theme_set(handle, "layout", "elm_widget", "default");
 
             RealHandle = Interop.Elementary.elm_naviframe_add(handle);
index da1db4c23f2ee06fe207b5198d31bcb83a076137..3c6cd78372f10af604ea73fb73e3e72df3f7d9ba 100755 (executable)
@@ -140,7 +140,7 @@ namespace ElmSharp
         /// <since_tizen> preview </since_tizen>
         protected override IntPtr CreateHandle(EvasObject parent)
         {
-            IntPtr handle = Interop.Elementary.elm_layout_add(parent);
+            IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);
             Interop.Elementary.elm_layout_theme_set(handle, "layout", "elm_widget", "default");
 
             RealHandle = Interop.Elementary.elm_panel_add(handle);
index 96f1f819d08c1ce82ee4a6fb7b48abb06cb58c34..bf31fd949b3ccbaa8f0f6b363e765ba1f86329fe 100755 (executable)
@@ -164,7 +164,7 @@ namespace ElmSharp
         /// <since_tizen> preview </since_tizen>
         protected override IntPtr CreateHandle(EvasObject parent)
         {
-            IntPtr handle = Interop.Elementary.elm_layout_add(parent);
+            IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);
             Interop.Elementary.elm_layout_theme_set(handle, "layout", "background", "default");
 
             RealHandle = Interop.Elementary.elm_table_add(handle);