Fix panelcorner actor warning on 3.53.3

This commit is contained in:
Charles Gagnon
2020-01-17 14:14:48 -05:00
parent 50e8eee6c2
commit c4e3684f15
2 changed files with 17 additions and 14 deletions

View File

@@ -39,7 +39,7 @@ var DynamicTransparency = Utils.defineClass({
this._initialPanelStyle = dtpPanel.panel.actor.get_style();
if (this._dtpPanel.panel._leftCorner) {
if (this._dtpPanel.geom.position == St.Side.TOP) {
this._initialPanelCornerStyle = dtpPanel.panel._leftCorner.actor.get_style();
}
@@ -57,7 +57,7 @@ var DynamicTransparency = Utils.defineClass({
this._dtpPanel.panel.actor.set_style(this._initialPanelStyle);
if (this._dtpPanel.panel._leftCorner) {
if (this._dtpPanel.geom.position == St.Side.TOP) {
this._dtpPanel.panel._leftCorner.actor.set_style(this._initialPanelCornerStyle);
this._dtpPanel.panel._rightCorner.actor.set_style(this._initialPanelCornerStyle);
}
@@ -217,7 +217,7 @@ var DynamicTransparency = Utils.defineClass({
this._dtpPanel.set_style('background-color: ' + this.currentBackgroundColor + transition + this._complementaryStyles);
if (this._dtpPanel.panel._leftCorner) {
if (this._dtpPanel.geom.position == St.Side.TOP) {
this._dtpPanel.panel._leftCorner.actor.set_style(cornerStyle);
this._dtpPanel.panel._rightCorner.actor.set_style(cornerStyle);
}