csharp-texteditor: adapt to new efl.ui.Popup API
This commit is contained in:
parent
3052374b49
commit
e6aa5e6aa0
|
@ -58,14 +58,14 @@ public class TextEditor
|
|||
// Shows a modal message popup with an "OK" button
|
||||
private void ShowMessage(string message)
|
||||
{
|
||||
new efl.ui.Popup_Alert_Text (win, (efl.ui.IPopup_Alert_Text epopup) => {
|
||||
new efl.ui.Text_Alert_Popup (win, (efl.ui.IText_Alert_Popup epopup) => {
|
||||
epopup.SetText(message);
|
||||
epopup.SetExpandable(new eina.Size2D(200,200));
|
||||
epopup.SetButton(efl.ui.Popup_Alert_Button.Positive, "OK", null);
|
||||
epopup.SetButton(efl.ui.Alert_Popup_Button.Positive, "OK", null);
|
||||
epopup.ButtonClickedEvt +=
|
||||
(object sender, efl.ui.Popup_Alert.ButtonClickedEvt_Args ea) => {
|
||||
(object sender, efl.ui.Alert_Popup.ButtonClickedEvt_Args ea) => {
|
||||
// Dismiss popup when the button is clicked
|
||||
((efl.ui.IPopup_Alert_Text)sender).SetParent(null);
|
||||
((efl.ui.IText_Alert_Popup)sender).SetParent(null);
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue