diff options
author | Xavi Artigas <xavierartigas@yahoo.es> | 2019-09-09 22:10:43 +0200 |
---|---|---|
committer | Xavi Artigas <xavierartigas@yahoo.es> | 2019-09-09 22:10:43 +0200 |
commit | 5a4c817d167a14a3203f1318bf3744162a4e1464 (patch) | |
tree | 2eef1b0c0b63ede666b2e718678d153a5dbe1d9f | |
parent | 40801d928510c53c2c2e42efe7190b58c97d16de (diff) |
mono-examples: Use Del() to dispose of widgets
-rw-r--r-- | apps/csharp/life/src/life_board.cs | 3 | ||||
-rw-r--r-- | apps/csharp/texteditor/src/texteditor_main.cs | 2 | ||||
-rw-r--r-- | 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 | |||
143 | { | 143 | { |
144 | if (lifeTimer != null) | 144 | if (lifeTimer != null) |
145 | { | 145 | { |
146 | lifeTimer.SetParent(null); | 146 | lifeTimer.Del(); |
147 | lifeTimer.Dispose(); | ||
148 | lifeTimer = null; | 147 | lifeTimer = null; |
149 | } | 148 | } |
150 | else | 149 | 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 | |||
66 | popup.ButtonClickedEvent += | 66 | popup.ButtonClickedEvent += |
67 | (object sender, Efl.Ui.AlertPopupButtonClickedEventArgs ea) => { | 67 | (object sender, Efl.Ui.AlertPopupButtonClickedEventArgs ea) => { |
68 | // Dismiss popup when the button is clicked | 68 | // Dismiss popup when the button is clicked |
69 | ((Efl.Ui.AlertPopup)sender).SetParent(null); | 69 | ((Efl.Ui.AlertPopup)sender).Del(); |
70 | }; | 70 | }; |
71 | } | 71 | } |
72 | 72 | ||
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 | |||
24 | popup.SetButton(Efl.Ui.Popup_Alert_Button.Positive, "Ok"); | 24 | popup.SetButton(Efl.Ui.Popup_Alert_Button.Positive, "Ok"); |
25 | popup.SetSize(new Eina.Size2D(150, 30)); | 25 | popup.SetSize(new Eina.Size2D(150, 30)); |
26 | popup.ButtonClickedEvent += (object sender, Efl.Ui.Popup_Alert.ButtonClickedEventArgs e) => { | 26 | popup.ButtonClickedEvent += (object sender, Efl.Ui.Popup_Alert.ButtonClickedEventArgs e) => { |
27 | popup.SetParent(null); | 27 | popup.Del() |
28 | popup.Invalidate(); | ||
29 | }; | 28 | }; |
30 | } | 29 | } |
31 | 30 | ||