mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
[workspacesView] Use add_style_class_name() to set style class
Previously Single/Mosaic view just overwrote the style class set by the parent.
This commit is contained in:
parent
9423d2c9ac
commit
ca2a11c57d
1 changed files with 2 additions and 2 deletions
|
|
@ -277,7 +277,7 @@ MosaicView.prototype = {
|
|||
_init: function(width, height, x, y, workspaces) {
|
||||
GenericWorkspacesView.prototype._init.call(this, width, height, x, y, workspaces);
|
||||
|
||||
this.actor.style_class = "workspaces mosaic";
|
||||
this.actor.add_style_class_name('mosaic');
|
||||
this._actor.set_clip(x - Workspace.FRAME_SIZE,
|
||||
y - Workspace.FRAME_SIZE,
|
||||
width + 2 * Workspace.FRAME_SIZE,
|
||||
|
|
@ -519,7 +519,7 @@ SingleView.prototype = {
|
|||
this._actor.add_actor(this._leftShadow);
|
||||
this._actor.add_actor(this._rightShadow);
|
||||
|
||||
this.actor.style_class = "workspaces single";
|
||||
this.actor.add_style_class_name('single');
|
||||
this._actor.set_clip(x, y, width, height);
|
||||
this._indicatorsPanel = null;
|
||||
this._indicatorsPanelWidth = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue