NewApplicationWindow returns MainWindow nows
This commit is contained in:
parent
8a531986eb
commit
9719391e5d
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue