xartigas pushed a commit to branch master.

http://git.enlightenment.org/tools/examples.git/commit/?id=5a4c817d167a14a3203f1318bf3744162a4e1464

commit 5a4c817d167a14a3203f1318bf3744162a4e1464
Author: Xavi Artigas <[email protected]>
Date:   Mon Sep 9 22:10:43 2019 +0200

    mono-examples: Use Del() to dispose of widgets
---
 apps/csharp/life/src/life_board.cs            | 3 +--
 apps/csharp/texteditor/src/texteditor_main.cs | 2 +-
 unsorted/elementary/efl_ui_unit_converter.cs  | 3 +--
 3 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/apps/csharp/life/src/life_board.cs 
b/apps/csharp/life/src/life_board.cs
index cecacc84..7933f5ce 100644
--- a/apps/csharp/life/src/life_board.cs
+++ b/apps/csharp/life/src/life_board.cs
@@ -143,8 +143,7 @@ public class LifeBoard
     {
         if (lifeTimer != null)
         {
-            lifeTimer.SetParent(null);
-            lifeTimer.Dispose();
+            lifeTimer.Del();
             lifeTimer = null;
         }
         else
diff --git a/apps/csharp/texteditor/src/texteditor_main.cs 
b/apps/csharp/texteditor/src/texteditor_main.cs
index bb978c52..c3b144cd 100644
--- a/apps/csharp/texteditor/src/texteditor_main.cs
+++ b/apps/csharp/texteditor/src/texteditor_main.cs
@@ -66,7 +66,7 @@ public class TextEditor : Efl.Csharp.Application
         popup.ButtonClickedEvent +=
             (object sender, Efl.Ui.AlertPopupButtonClickedEventArgs ea) => {
           // Dismiss popup when the button is clicked
-          ((Efl.Ui.AlertPopup)sender).SetParent(null);
+          ((Efl.Ui.AlertPopup)sender).Del();
         };
     }
 
diff --git a/unsorted/elementary/efl_ui_unit_converter.cs 
b/unsorted/elementary/efl_ui_unit_converter.cs
index cf268464..38c6c7ac 100644
--- a/unsorted/elementary/efl_ui_unit_converter.cs
+++ b/unsorted/elementary/efl_ui_unit_converter.cs
@@ -24,8 +24,7 @@ public class Example
         popup.SetButton(Efl.Ui.Popup_Alert_Button.Positive, "Ok");
         popup.SetSize(new Eina.Size2D(150, 30));
         popup.ButtonClickedEvent += (object sender, 
Efl.Ui.Popup_Alert.ButtonClickedEventArgs e) => {
-            popup.SetParent(null);
-            popup.Invalidate();
+            popup.Del()
         };
     }
 

-- 


Reply via email to