Adapt to painting and picking API change
While still leaving them unused, pass around ClutterPaintContext and ClutterPickContext when painting and picking. The reason for splitting this change up in two is to make it possible to bisect easier in between the API change and the change to using the framebuffer passed around with the temporary contexts. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/827
This commit is contained in:

committed by
Georges Basile Stavracas Neto

parent
73776508b3
commit
988a0e7314
@ -472,9 +472,9 @@ class ObjInspector extends St.ScrollView {
|
||||
|
||||
var RedBorderEffect = GObject.registerClass(
|
||||
class RedBorderEffect extends Clutter.Effect {
|
||||
vfunc_paint() {
|
||||
vfunc_paint(paintContext) {
|
||||
let actor = this.get_actor();
|
||||
actor.continue_paint();
|
||||
actor.continue_paint(paintContext);
|
||||
|
||||
let color = new Cogl.Color();
|
||||
color.init_from_4ub(0xff, 0, 0, 0xc4);
|
||||
|
@ -142,8 +142,8 @@ class UserWidgetLabel extends St.Widget {
|
||||
this._currentLabel.allocate(childBox, flags);
|
||||
}
|
||||
|
||||
vfunc_paint() {
|
||||
this._currentLabel.paint();
|
||||
vfunc_paint(paintContext) {
|
||||
this._currentLabel.paint(paintContext);
|
||||
}
|
||||
|
||||
_updateUser() {
|
||||
|
Reference in New Issue
Block a user