From 26ef0a63014f5a3c830a6928fab7d67a0a5a03bd Mon Sep 17 00:00:00 2001 From: Drew Weymouth Date: Sun, 10 Dec 2023 14:40:47 -0800 Subject: [PATCH] rename StartAnimationPrivate -> StartAnimationInternal --- animation.go | 4 ++-- internal/driver/glfw/animation.go | 2 +- internal/driver/mobile/animation.go | 2 +- test/testdriver.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/animation.go b/animation.go index 0857d3c661..cef4f20067 100644 --- a/animation.go +++ b/animation.go @@ -83,8 +83,8 @@ func (a *Animation) Start() { return } a.state = AnimationStateRunning - d := CurrentApp().Driver().(interface{ StartAnimationPrivate(*Animation) }) - d.StartAnimationPrivate(a) + d := CurrentApp().Driver().(interface{ StartAnimationInternal(*Animation) }) + d.StartAnimationInternal(a) } // Stop will end this animation and remove it from the run-loop. diff --git a/internal/driver/glfw/animation.go b/internal/driver/glfw/animation.go index 80997fc103..8a865a891b 100644 --- a/internal/driver/glfw/animation.go +++ b/internal/driver/glfw/animation.go @@ -6,7 +6,7 @@ func (d *gLDriver) StartAnimation(a *fyne.Animation) { a.Start() } -func (d *gLDriver) StartAnimationPrivate(a *fyne.Animation) { +func (d *gLDriver) StartAnimationInternal(a *fyne.Animation) { d.animation.Start(a) } diff --git a/internal/driver/mobile/animation.go b/internal/driver/mobile/animation.go index 5b9ef2da4f..2f1f81dd9b 100644 --- a/internal/driver/mobile/animation.go +++ b/internal/driver/mobile/animation.go @@ -6,7 +6,7 @@ func (d *mobileDriver) StartAnimation(a *fyne.Animation) { a.Start() } -func (d *mobileDriver) StartAnimationPrivate(a *fyne.Animation) { +func (d *mobileDriver) StartAnimationInternal(a *fyne.Animation) { d.animation.Start(a) } diff --git a/test/testdriver.go b/test/testdriver.go index 273490e168..2b6ee6f034 100644 --- a/test/testdriver.go +++ b/test/testdriver.go @@ -112,7 +112,7 @@ func (d *testDriver) StopAnimation(a *fyne.Animation) { // currently no animations in test app, do nothing } -func (d *testDriver) StartAnimationPrivate(a *fyne.Animation) { +func (d *testDriver) StartAnimationInternal(a *fyne.Animation) { /// currently no animations in test app, we just initialise it and leave a.Tick(1.0) }