From 1e06ed6503b62031315fabd5356eb3ba248cbbf5 Mon Sep 17 00:00:00 2001 From: Simon Schneegans Date: Tue, 4 Apr 2023 11:44:15 +0200 Subject: [PATCH] :beetle: Fix compatibility with GNOME 3.36 --- src/Shader.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Shader.js b/src/Shader.js index d76089d..6b9937b 100644 --- a/src/Shader.js +++ b/src/Shader.js @@ -103,7 +103,11 @@ var Shader = GObject.registerClass( this._timeline.stop(); } - this._timeline.set_actor(actor); + // On GNOME 3.36 this method was not yet available. + if (this._timeline.set_actor) { + this._timeline.set_actor(actor); + } + this._timeline.set_duration(duration); this._timeline.start();