summaryrefslogtreecommitdiff
path: root/reference/csharp/ui/src/ui_container.cs
diff options
context:
space:
mode:
Diffstat (limited to 'reference/csharp/ui/src/ui_container.cs')
-rw-r--r--reference/csharp/ui/src/ui_container.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/reference/csharp/ui/src/ui_container.cs b/reference/csharp/ui/src/ui_container.cs
index 88dc3d0..8b611f1 100644
--- a/reference/csharp/ui/src/ui_container.cs
+++ b/reference/csharp/ui/src/ui_container.cs
@@ -24,7 +24,7 @@ public class Example
24 if (i == 2) 24 if (i == 2)
25 { 25 {
26 // Button 2 has its maximum size limited, so it will be smaller 26 // Button 2 has its maximum size limited, so it will be smaller
27 button.SetHintMax(new Eina.Size2D(100,50)); 27 button.SetHintSizeMax(new Eina.Size2D(100,50));
28 } 28 }
29 box.DoPack(button); 29 box.DoPack(button);
30 } 30 }
@@ -70,9 +70,10 @@ public class Example
70 win.SetWinType(Efl.Ui.WinType.Basic); 70 win.SetWinType(Efl.Ui.WinType.Basic);
71 win.SetText("Container demo"); 71 win.SetText("Container demo");
72 win.SetAutohide(true); 72 win.SetAutohide(true);
73 win.HideEvt += (object sender, EventArgs e) => { 73 win.VisibilityChangedEvt += (object sender, Efl.Gfx.EntityVisibilityChangedEvt_Args e) => {
74 // Exit the EFL main loop 74 // Exit the EFL main loop
75 Efl.Ui.Config.Exit(); 75 if (e.arg == false)
76 Efl.Ui.Config.Exit();
76 }; 77 };
77 // Give the window an initial size so there is room to resize the panes. 78 // Give the window an initial size so there is room to resize the panes.
78 // Otherwise, all widgets are tightly packed 79 // Otherwise, all widgets are tightly packed
@@ -103,7 +104,7 @@ public class Example
103 // container 104 // container
104 Efl.Ui.Button quit_btn = new Efl.Ui.Button(win); 105 Efl.Ui.Button quit_btn = new Efl.Ui.Button(win);
105 quit_btn.SetText("Quit"); 106 quit_btn.SetText("Quit");
106 quit_btn.SetHintMax(new Eina.Size2D(150, 30)); 107 quit_btn.SetHintSizeMax(new Eina.Size2D(150, 30));
107 quit_btn.ClickedEvt += (object sender, EventArgs e) => { 108 quit_btn.ClickedEvt += (object sender, EventArgs e) => {
108 // Exit the EFL main loop 109 // Exit the EFL main loop
109 Efl.Ui.Config.Exit(); 110 Efl.Ui.Config.Exit();