Slight behavior change to Area.OpenTextFieldAt().

This commit is contained in:
Pietro Gagliardi 2014-08-22 12:53:10 -04:00
parent e5dd618cb5
commit 7008007edb
2 changed files with 1 additions and 2 deletions

View File

@ -47,7 +47,7 @@ type Area interface {
// OpenTextFieldAt opens a TextField with the top-left corner at the given coordinates of the Area.
// It panics if the coordinates fall outside the Area.
// Any text previously in the TextField is removed.
// Any text previously in the TextField (be it by the user or by a call to SetTextFieldText()) is retained.
// The TextField receives the input focus so the user can type things; when the TextField loses the input focus, it hides itself and signals the event set by OnTextFieldDismissed.
// TODO escape key
OpenTextFieldAt(x int, y int)

View File

@ -114,7 +114,6 @@ func (a *area) OpenTextFieldAt(x, y int) {
}
a.textfieldx = x
a.textfieldy = y
a.SetTextFieldText("")
// we disabled this for the initial Area show; we don't need to anymore
C.gtk_widget_set_no_show_all(a.textfieldw, C.FALSE)
C.gtk_widget_show_all(a.textfieldw)