summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/csharp/texteditor/src/texteditor_main.cs8
-rw-r--r--reference/csharp/ui/src/focus_main.cs8
-rw-r--r--reference/csharp/ui/src/ui_container.cs4
-rw-r--r--reference/csharp/ui/src/ui_sizing.cs6
-rw-r--r--tutorial/csharp/hello-gui/src/gui_main.cs4
5 files changed, 15 insertions, 15 deletions
diff --git a/apps/csharp/texteditor/src/texteditor_main.cs b/apps/csharp/texteditor/src/texteditor_main.cs
index e65ec3a..c77fa3c 100644
--- a/apps/csharp/texteditor/src/texteditor_main.cs
+++ b/apps/csharp/texteditor/src/texteditor_main.cs
@@ -84,7 +84,7 @@ public class TextEditor : Efl.Csharp.Application
84 image.SetIcon(iconName); 84 image.SetIcon(iconName);
85 button.SetContent(image); 85 button.SetContent(image);
86 86
87 toolbar.DoPack(button); 87 toolbar.Pack(button);
88 return button; 88 return button;
89 } 89 }
90 90
@@ -98,7 +98,7 @@ public class TextEditor : Efl.Csharp.Application
98 // space will be given to the other object in the parent container. 98 // space will be given to the other object in the parent container.
99 bar.SetHintWeight(1, 0); 99 bar.SetHintWeight(1, 0);
100 bar.SetDirection(Efl.Ui.Dir.Horizontal); 100 bar.SetDirection(Efl.Ui.Dir.Horizontal);
101 parent.DoPack(bar); 101 parent.Pack(bar);
102 102
103 // "New" button 103 // "New" button
104 toolbarButtonNew = GUIToolbarButtonAdd(bar, "New", "document-new", 104 toolbarButtonNew = GUIToolbarButtonAdd(bar, "New", "document-new",
@@ -144,7 +144,7 @@ public class TextEditor : Efl.Csharp.Application
144 // As a result, it pushes the "Quit" button to the right margin and 144 // As a result, it pushes the "Quit" button to the right margin and
145 // the rest to the left. 145 // the rest to the left.
146 Efl.Ui.Box box = new Efl.Ui.Box(parent); 146 Efl.Ui.Box box = new Efl.Ui.Box(parent);
147 bar.DoPack(box); 147 bar.Pack(box);
148 148
149 // "Quit" button 149 // "Quit" button
150 GUIToolbarButtonAdd(bar, "Quit", "application-exit", (object sender, EventArgs e) => { Efl.Ui.Config.Exit(); } ); 150 GUIToolbarButtonAdd(bar, "Quit", "application-exit", (object sender, EventArgs e) => { Efl.Ui.Config.Exit(); } );
@@ -175,7 +175,7 @@ public class TextEditor : Efl.Csharp.Application
175 editorTextBox.SetHintSizeMin(new Eina.Size2D(360, 240)); 175 editorTextBox.SetHintSizeMin(new Eina.Size2D(360, 240));
176 editorTextBox.ChangedEvt += EditorChangedCb; 176 editorTextBox.ChangedEvt += EditorChangedCb;
177 editorTextBox.ChangedUserEvt += EditorChangedCb; 177 editorTextBox.ChangedUserEvt += EditorChangedCb;
178 box.DoPack(editorTextBox); 178 box.Pack(editorTextBox);
179 179
180 // Initial refresh of the toolbar buttons 180 // Initial refresh of the toolbar buttons
181 GUIToolbarRefresh(); 181 GUIToolbarRefresh();
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);
diff --git a/reference/csharp/ui/src/ui_container.cs b/reference/csharp/ui/src/ui_container.cs
index 0cb9c23..3d3c7e1 100644
--- a/reference/csharp/ui/src/ui_container.cs
+++ b/reference/csharp/ui/src/ui_container.cs
@@ -26,7 +26,7 @@ public class Example : Efl.Csharp.Application
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.SetHintSizeMax(new Eina.Size2D(100,50)); 27 button.SetHintSizeMax(new Eina.Size2D(100,50));
28 } 28 }
29 box.DoPack(button); 29 box.Pack(button);
30 } 30 }
31 31
32 return box; 32 return box;
@@ -46,7 +46,7 @@ public class Example : Efl.Csharp.Application
46 // Add 4 buttons, following the defined table flow 46 // Add 4 buttons, following the defined table flow
47 button = new Efl.Ui.Button(win); 47 button = new Efl.Ui.Button(win);
48 button.SetText($"Table {i}"); 48 button.SetText($"Table {i}");
49 table.DoPack(button); 49 table.Pack(button);
50 } 50 }
51 51
52 // Last button spans two table cells 52 // Last button spans two table cells
diff --git a/reference/csharp/ui/src/ui_sizing.cs b/reference/csharp/ui/src/ui_sizing.cs
index 7ccfa10..07f5769 100644
--- a/reference/csharp/ui/src/ui_sizing.cs
+++ b/reference/csharp/ui/src/ui_sizing.cs
@@ -29,19 +29,19 @@ public class Example : Efl.Csharp.Application
29 // Create a regular button (without size hints) 29 // Create a regular button (without size hints)
30 var button = new Efl.Ui.Button(win); 30 var button = new Efl.Ui.Button(win);
31 button.SetText("Button"); 31 button.SetText("Button");
32 box.DoPack(button); 32 box.Pack(button);
33 33
34 // Create a small button (max size is limited) 34 // Create a small button (max size is limited)
35 button = new Efl.Ui.Button(win); 35 button = new Efl.Ui.Button(win);
36 button.SetText("Small"); 36 button.SetText("Small");
37 button.SetHintSizeMax(new Eina.Size2D(50,50)); 37 button.SetHintSizeMax(new Eina.Size2D(50,50));
38 box.DoPack(button); 38 box.Pack(button);
39 39
40 // Create a big button (min size is limited) 40 // Create a big button (min size is limited)
41 button = new Efl.Ui.Button(win); 41 button = new Efl.Ui.Button(win);
42 button.SetText("Big button"); 42 button.SetText("Big button");
43 button.SetHintSizeMin(new Eina.Size2D(100,100)); 43 button.SetHintSizeMin(new Eina.Size2D(100,100));
44 box.DoPack(button); 44 box.Pack(button);
45 } 45 }
46 46
47#if WIN32 47#if WIN32
diff --git a/tutorial/csharp/hello-gui/src/gui_main.cs b/tutorial/csharp/hello-gui/src/gui_main.cs
index 4000c9b..cc6eaa9 100644
--- a/tutorial/csharp/hello-gui/src/gui_main.cs
+++ b/tutorial/csharp/hello-gui/src/gui_main.cs
@@ -38,7 +38,7 @@ public class Example : Efl.Csharp.Application
38 label.SetHintWeight(1.0, 0.9); 38 label.SetHintWeight(1.0, 0.9);
39 label.SetHintAlign(0.5, 0.5); 39 label.SetHintAlign(0.5, 0.5);
40 // Add the text to the box container 40 // Add the text to the box container
41 box.DoPack(label); 41 box.Pack(label);
42 42
43 // Create a button widget 43 // Create a button widget
44 var button = new Efl.Ui.Button(box); 44 var button = new Efl.Ui.Button(box);
@@ -48,7 +48,7 @@ public class Example : Efl.Csharp.Application
48 // Set the method to be called when the button is pressed 48 // Set the method to be called when the button is pressed
49 button.ClickedEvt += (object sender, EventArgs e) => { Efl.App.AppMain.Quit(0); }; 49 button.ClickedEvt += (object sender, EventArgs e) => { Efl.App.AppMain.Quit(0); };
50 // Add the button to the box container 50 // Add the button to the box container
51 box.DoPack(button); 51 box.Pack(button);
52 } 52 }
53 53
54#if WIN32 54#if WIN32