manual nui merge 0.2.38
[platform/core/csapi/nui.git] / Tizen.NUI / src / internal / ItemView.cs
old mode 100755 (executable)
new mode 100644 (file)
index 860e83b..f3defdc
@@ -32,7 +32,7 @@ using System;
 using System.Runtime.InteropServices;
 
 
-    internal class ItemView : Scrollable {
+  public class ItemView : Scrollable {
   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
 
   internal ItemView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.ItemView_SWIGUpcast(cPtr), cMemoryOwn) {
@@ -95,10 +95,15 @@ using System.Runtime.InteropServices;
     }
   
     ~Property() {
-      Dispose();
+      DisposeQueue.Instance.Add(this);
     }
   
     public virtual void Dispose() {
+      if (!Window.IsInstalled()) {
+        DisposeQueue.Instance.Add(this);
+        return;
+      }
+
       lock(this) {
         if (swigCPtr.Handle != global::System.IntPtr.Zero) {
           if (swigCMemOwn) {