[gnome-shell] screenShield: Adapt to painting and picking API change
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] screenShield: Adapt to painting and picking API change
- Date: Sat, 7 Dec 2019 13:15:16 +0000 (UTC)
commit 85bec783ee562e3cafe7531250da1e96cfd336aa
Author: Robert Mader <robert mader posteo de>
Date: Fri Dec 6 19:57:37 2019 +0100
screenShield: Adapt to painting and picking API change
This was apparently forgotten in 988a0e7314018, causing the warning:
`JS ERROR: Error: Too few arguments to method Clutter.Actor.paint`
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/891
js/ui/screenShield.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
index dbeabedd06..ed41f12975 100644
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
@@ -1,6 +1,6 @@
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
-const { AccountsService, Clutter, Cogl, Gio, GLib,
+const { AccountsService, Clutter, Gio, GLib,
GnomeDesktop, GObject, Graphene, Meta, Shell, St } = imports.gi;
const Cairo = imports.cairo;
const Signals = imports.signals;
@@ -407,18 +407,18 @@ class ScreenShieldArrow extends St.Bin {
super.vfunc_style_changed();
}
- vfunc_paint() {
+ vfunc_paint(paintContext) {
if (this._shadowHelper) {
this._shadowHelper.update(this._drawingArea);
let allocation = this._drawingArea.get_allocation_box();
let paintOpacity = this._drawingArea.get_paint_opacity();
- let framebuffer = Cogl.get_draw_framebuffer();
+ let framebuffer = paintContext.get_framebuffer();
this._shadowHelper.paint(framebuffer, allocation, paintOpacity);
}
- this._drawingArea.paint();
+ this._drawingArea.paint(paintContext);
}
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]