From 880904d5faa36e8a5c8176771fa3bbd6392a0dec Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Fri, 7 Jun 2024 02:01:00 -0400 Subject: [PATCH] Make changes to application.go to account for new API --- application.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application.go b/application.go index a7367b0..ef3249a 100644 --- a/application.go +++ b/application.go @@ -5,6 +5,7 @@ import "image" import "strings" import "net/url" import "git.tebibyte.media/tomo/tomo" +import "git.tebibyte.media/tomo/tomo/canvas" import "git.tebibyte.media/tomo/nasin/internal/registrar" // Application represents an application object. @@ -118,7 +119,7 @@ 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.MainWindow, error) { +func NewApplicationWindow (application Application, bounds image.Rectangle) (tomo.Window, error) { window, err := tomo.NewWindow(bounds) if err != nil { return nil, err } description := application.Describe() @@ -128,7 +129,7 @@ func NewApplicationWindow (application Application, bounds image.Rectangle) (tom } func setApplicationWindowIcon (window tomo.Window, description ApplicationDescription) { - allSizes := func (icon tomo.Icon) (sizes []image.Image) { + allSizes := func (icon tomo.Icon) (sizes []canvas.Texture) { small := icon.Texture(tomo.IconSizeSmall) medium := icon.Texture(tomo.IconSizeMedium) large := icon.Texture(tomo.IconSizeLarge)