From 6b9c04de6e19e69fa97e4bd83de9ebb9cbcbd40b Mon Sep 17 00:00:00 2001 From: Sebastian Wick Date: Fri, 15 Dec 2023 16:36:47 +0100 Subject: [PATCH] lookingGlass: Use Cogl.Pipeline.new to construct new pipelines new Cogl.Pipeline now constructs a GObject via g_object_new and not via cogl_pipeline_new. Construction via g_object_new requires a some construct only parameters so either way, this call doesn't work anymore. Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3144 Part-of: --- HACKING.md | 2 +- js/ui/lookingGlass.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/HACKING.md b/HACKING.md index fe8078446..7672d1f2c 100644 --- a/HACKING.md +++ b/HACKING.md @@ -168,7 +168,7 @@ you to inherit from a type to use it, you can do so: let coglContext = framebuffer.get_context(); let alloc = this.get_allocation_box(); - let pipeline = new Cogl.Pipeline(coglContext); + let pipeline = Cogl.Pipeline.new(coglContext); pipeline.set_color4ub(255, 0, 0, 255); framebuffer.draw_rectangle(pipeline, diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js index 9f5575f75..b9f8589a3 100644 --- a/js/ui/lookingGlass.js +++ b/js/ui/lookingGlass.js @@ -542,7 +542,7 @@ class RedBorderEffect extends Clutter.Effect { let color = new Cogl.Color(); color.init_from_4ub(0xff, 0, 0, 0xc4); - this._pipeline = new Cogl.Pipeline(coglContext); + this._pipeline = Cogl.Pipeline.new(coglContext); this._pipeline.set_color(color); }