diff --git a/dialog/entry.go b/dialog/entry.go index 3ccaaf42f5..6f0ed3780e 100644 --- a/dialog/entry.go +++ b/dialog/entry.go @@ -7,7 +7,7 @@ import ( // EntryDialog is a variation of a dialog which prompts the user to enter some text. // -// Deprecated: Use dialog.NewFormDialog() or dialog.ShowFormDialog() with a widget.Entry inside instead. +// Deprecated: Use dialog.NewForm() or dialog.ShowForm() with a widget.Entry inside instead. type EntryDialog struct { *FormDialog @@ -45,7 +45,7 @@ func (i *EntryDialog) SetOnClosed(callback func()) { // onConfirm is a callback that runs when the user enters a string of // text and clicks the "confirm" button. May be nil. // -// Deprecated: Use dialog.NewFormDialog() with a widget.Entry inside instead. +// Deprecated: Use dialog.NewForm() with a widget.Entry inside instead. func NewEntryDialog(title, message string, onConfirm func(string), parent fyne.Window) *EntryDialog { i := &EntryDialog{entry: widget.NewEntry()} items := []*widget.FormItem{widget.NewFormItem(message, i.entry)} @@ -68,7 +68,7 @@ func NewEntryDialog(title, message string, onConfirm func(string), parent fyne.W // ShowEntryDialog creates a new entry dialog and shows it immediately. // -// Deprecated: Use dialog.ShowFormDialog() with a widget.Entry inside instead. +// Deprecated: Use dialog.ShowForm() with a widget.Entry inside instead. func ShowEntryDialog(title, message string, onConfirm func(string), parent fyne.Window) { NewEntryDialog(title, message, onConfirm, parent).Show() } diff --git a/dialog/form.go b/dialog/form.go index 1b1f02eab2..bd12754ea1 100644 --- a/dialog/form.go +++ b/dialog/form.go @@ -32,7 +32,7 @@ func (d *FormDialog) Submit() { // state before checking all others to determine the net validation state. If the error passed is not nil, then the // confirm button will be disabled. If the error parameter is nil, then all other Validatable widgets in items are // checked as well to determine whether the confirm button should be disabled. -// This method is passed to each Validatable widget's SetOnValidationChanged method in items by NewFormDialog. +// This method is passed to each Validatable widget's SetOnValidationChanged method in items by NewForm. func (d *FormDialog) validateItems(err error) { if err != nil { d.confirm.Disable()