NewApplicationWindow takes in a WindowKind
This commit is contained in:
parent
2312b48a28
commit
0f9608a50a
@ -204,8 +204,8 @@ func RunApplication (application Application) {
|
||||
// owned by the application. The window's icon will be automatically set by
|
||||
// looking for an icon with the name of the application's ID. If that is not
|
||||
// found, the default icon for the application's ApplicationRole will used.
|
||||
func NewApplicationWindow (application Application, bounds image.Rectangle) (tomo.Window, error) {
|
||||
window, err := tomo.NewWindow(bounds)
|
||||
func NewApplicationWindow (application Application, kind tomo.WindowKind, bounds image.Rectangle) (tomo.Window, error) {
|
||||
window, err := tomo.NewWindow(kind, bounds)
|
||||
if err != nil { return nil, err }
|
||||
description := application.Describe()
|
||||
window.SetTitle(description.Name)
|
||||
|
Loading…
Reference in New Issue
Block a user