summaryrefslogtreecommitdiff
path: root/apps/csharp/texteditor/src/texteditor_main.cs
diff options
context:
space:
mode:
Diffstat (limited to 'apps/csharp/texteditor/src/texteditor_main.cs')
-rw-r--r--apps/csharp/texteditor/src/texteditor_main.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/csharp/texteditor/src/texteditor_main.cs b/apps/csharp/texteditor/src/texteditor_main.cs
index f01cb73..4b63c54 100644
--- a/apps/csharp/texteditor/src/texteditor_main.cs
+++ b/apps/csharp/texteditor/src/texteditor_main.cs
@@ -61,7 +61,7 @@ public class TextEditor : Efl.Csharp.Application
61 { 61 {
62 var popup = new Efl.Ui.TextAlertPopup (win); 62 var popup = new Efl.Ui.TextAlertPopup (win);
63 popup.SetText(message); 63 popup.SetText(message);
64 popup.SetExpandable(new Eina.Size2D(200, 200)); 64 popup.SetHintSizeMax(new Eina.Size2D(200, 200));
65 popup.SetButton(Efl.Ui.AlertPopupButton.Positive, "OK", null); 65 popup.SetButton(Efl.Ui.AlertPopupButton.Positive, "OK", null);
66 popup.ButtonClickedEvt += 66 popup.ButtonClickedEvt +=
67 (object sender, Efl.Ui.AlertPopupButtonClickedEvt_Args ea) => { 67 (object sender, Efl.Ui.AlertPopupButtonClickedEvt_Args ea) => {
@@ -72,7 +72,7 @@ public class TextEditor : Efl.Csharp.Application
72 72
73 // Adds a button to the toolbar, with the given text, icon and click event handler 73 // Adds a button to the toolbar, with the given text, icon and click event handler
74 private Efl.Ui.Button GUIToolbarButtonAdd(Efl.Ui.Box toolbar, string name, 74 private Efl.Ui.Button GUIToolbarButtonAdd(Efl.Ui.Box toolbar, string name,
75 string iconName, EventHandler<Efl.Ui.IClickableClickedEvt_Args> func) 75 string iconName, EventHandler<Efl.Input.IClickableClickedEvt_Args> func)
76 { 76 {
77 var button = new Efl.Ui.Button(toolbar); 77 var button = new Efl.Ui.Button(toolbar);
78 button.SetText(name); 78 button.SetText(name);
@@ -102,7 +102,7 @@ public class TextEditor : Efl.Csharp.Application
102 102
103 // "New" button 103 // "New" button
104 toolbarButtonNew = GUIToolbarButtonAdd(bar, "New", "document-new", 104 toolbarButtonNew = GUIToolbarButtonAdd(bar, "New", "document-new",
105 (object sender, Efl.Ui.IClickableClickedEvt_Args ea) => { 105 (object sender, Efl.Input.IClickableClickedEvt_Args ea) => {
106 // When this button is clicked, remove content and refresh toolbar 106 // When this button is clicked, remove content and refresh toolbar
107 editorTextBox.SetText(""); 107 editorTextBox.SetText("");
108 GUIToolbarRefresh(); 108 GUIToolbarRefresh();
@@ -110,7 +110,7 @@ public class TextEditor : Efl.Csharp.Application
110 110
111 // "Save" button 111 // "Save" button
112 toolbarButtonSave = GUIToolbarButtonAdd(bar, "Save", "document-save", 112 toolbarButtonSave = GUIToolbarButtonAdd(bar, "Save", "document-save",
113 (object sender, Efl.Ui.IClickableClickedEvt_Args ea) => { 113 (object sender, Efl.Input.IClickableClickedEvt_Args ea) => {
114 // When this button is clicked, try to save content and refresh toolbar 114 // When this button is clicked, try to save content and refresh toolbar
115 try { 115 try {
116 System.IO.File.WriteAllText(filename, editorTextBox.GetText()); 116 System.IO.File.WriteAllText(filename, editorTextBox.GetText());
@@ -125,7 +125,7 @@ public class TextEditor : Efl.Csharp.Application
125 125
126 // "Load" button 126 // "Load" button
127 toolbarButtonLoad = GUIToolbarButtonAdd(bar, "Load", "document-open", 127 toolbarButtonLoad = GUIToolbarButtonAdd(bar, "Load", "document-open",
128 (object sender, Efl.Ui.IClickableClickedEvt_Args ea) => { 128 (object sender, Efl.Input.IClickableClickedEvt_Args ea) => {
129 // When this button is clicked, try to load content and refresh toolbar 129 // When this button is clicked, try to load content and refresh toolbar
130 try { 130 try {
131 editorTextBox.SetText(System.IO.File.ReadAllText(filename)); 131 editorTextBox.SetText(System.IO.File.ReadAllText(filename));
@@ -147,7 +147,7 @@ public class TextEditor : Efl.Csharp.Application
147 bar.Pack(box); 147 bar.Pack(box);
148 148
149 // "Quit" button 149 // "Quit" button
150 GUIToolbarButtonAdd(bar, "Quit", "application-exit", (object sender, Efl.Ui.IClickableClickedEvt_Args e) => { Efl.Ui.Config.Exit(); } ); 150 GUIToolbarButtonAdd(bar, "Quit", "application-exit", (object sender, Efl.Input.IClickableClickedEvt_Args e) => { Efl.Ui.Config.Exit(); } );
151 } 151 }
152 152
153 // Builds the user interface for the text editor 153 // Builds the user interface for the text editor