[gnome-shell] [workspacesView] Use add_style_class_name() to set style class
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] [workspacesView] Use add_style_class_name() to set style class
- Date: Fri, 26 Mar 2010 22:42:15 +0000 (UTC)
commit ca2a11c57dfb961915ae185b1294d3915bd705f6
Author: Florian Müllner <fmuellner src gnome org>
Date: Thu Mar 25 12:40:10 2010 +0100
[workspacesView] Use add_style_class_name() to set style class
Previously Single/Mosaic view just overwrote the style class set
by the parent.
js/ui/workspacesView.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js
index f8d92df..36be82c 100644
--- a/js/ui/workspacesView.js
+++ b/js/ui/workspacesView.js
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]