NewApplicationWindow returns MainWindow nows

This commit is contained in:
Sasha Koshka 2023-09-08 16:29:03 -04:00
parent 8a531986eb
commit 9719391e5d
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ func RunApplication (application Application) error {
// NewApplicationWindow creates a window for an application. It will
// automatically set window information to signal to the OS that the window is
// owned by the application.
func NewApplicationWindow (application Application, bounds image.Rectangle) (Window, error) {
func NewApplicationWindow (application Application, bounds image.Rectangle) (MainWindow, error) {
window, err := NewWindow(bounds)
if err != nil { return nil, err }
window.SetTitle(application.Describe().String())