🪲 Fix compatibility with GNOME 3.36

This commit is contained in:
Simon Schneegans
2023-04-04 11:44:15 +02:00
parent 0fd3f0f62f
commit 1e06ed6503
+5 -1
View File
@@ -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();