summaryrefslogtreecommitdiff
path: root/reference/csharp/ui/src/focus_main.cs
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-04-23 12:32:06 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-04-23 12:33:00 +0200
commit595be4aa12fe5a6ab5fa177fb308a2b880acaf65 (patch)
tree7a4c24e69454923c5e836bf386f1ac5406644b26 /reference/csharp/ui/src/focus_main.cs
parentf47f1f3672ec35ec9ce5969572a6d4d6f8563125 (diff)
csharp: Update examples after repeated method name
Summary: In essence, IPack.DoPack became IPack.Pack Depends on D8650 Reviewers: felipealmeida, vitor.sousa, segfaultxavi Reviewed By: segfaultxavi Differential Revision: https://phab.enlightenment.org/D8651
Diffstat (limited to 'reference/csharp/ui/src/focus_main.cs')
-rw-r--r--reference/csharp/ui/src/focus_main.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/reference/csharp/ui/src/focus_main.cs b/reference/csharp/ui/src/focus_main.cs
index 494c86a..cc806f7 100644
--- a/reference/csharp/ui/src/focus_main.cs
+++ b/reference/csharp/ui/src/focus_main.cs
@@ -32,14 +32,14 @@ public class Example : Efl.Csharp.Application
32 checkbox.SetText("Check " + i); 32 checkbox.SetText("Check " + i);
33 checkbox.SetHintAlign(0.5, 0.5); 33 checkbox.SetHintAlign(0.5, 0.5);
34 checkbox.FocusChangedEvt += FocusChangedCb; 34 checkbox.FocusChangedEvt += FocusChangedCb;
35 vbox.DoPack(checkbox); 35 vbox.Pack(checkbox);
36 if (i == 0) first_checkbox = checkbox; 36 if (i == 0) first_checkbox = checkbox;
37 }; 37 };
38 38
39 // Create an horizontal box to contain the two buttons 39 // Create an horizontal box to contain the two buttons
40 var hbox = new Efl.Ui.Box(vbox); 40 var hbox = new Efl.Ui.Box(vbox);
41 hbox.SetDirection(Efl.Ui.Dir.Horizontal); 41 hbox.SetDirection(Efl.Ui.Dir.Horizontal);
42 vbox.DoPack(hbox); 42 vbox.Pack(hbox);
43 43
44 // Create a "Focus Mover" button 44 // Create a "Focus Mover" button
45 var button = new Efl.Ui.Button(hbox); 45 var button = new Efl.Ui.Button(hbox);
@@ -50,7 +50,7 @@ public class Example : Efl.Csharp.Application
50 // Manually transfer focus to the first check box 50 // Manually transfer focus to the first check box
51 Efl.Ui.Focus.Util.Focus(first_checkbox); 51 Efl.Ui.Focus.Util.Focus(first_checkbox);
52 }; 52 };
53 hbox.DoPack(button); 53 hbox.Pack(button);
54 54
55 // Create a Quit button 55 // Create a Quit button
56 button = new Efl.Ui.Button(hbox); 56 button = new Efl.Ui.Button(hbox);
@@ -60,7 +60,7 @@ public class Example : Efl.Csharp.Application
60 Console.WriteLine("Clicked Quit"); 60 Console.WriteLine("Clicked Quit");
61 Efl.Ui.Config.Exit(); 61 Efl.Ui.Config.Exit();
62 }; 62 };
63 hbox.DoPack(button); 63 hbox.Pack(button);
64 64
65 // Show the focus highlight 65 // Show the focus highlight
66 win.SetFocusHighlightEnabled(true); 66 win.SetFocusHighlightEnabled(true);