[gnome-shell] Remove manually added :rtl pseudo classes
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] Remove manually added :rtl pseudo classes
- Date: Sat, 5 Mar 2011 20:26:05 +0000 (UTC)
commit 8ed191283a0bc959f9650df136603f3220008949
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Mar 3 22:38:24 2011 +0100
Remove manually added :rtl pseudo classes
To deal with different CSS in RTL locales, we used to manually add
an :rtl pseudo class to some actors. With automatically assigned
:ltr/:rtl selectors this is no longer necessary.
https://bugzilla.gnome.org/show_bug.cgi?id=643835
js/ui/dash.js | 5 -----
js/ui/panel.js | 7 -------
js/ui/workspaceThumbnail.js | 4 ----
3 files changed, 0 insertions(+), 16 deletions(-)
---
diff --git a/js/ui/dash.js b/js/ui/dash.js
index e0a48e5..6a39edc 100644
--- a/js/ui/dash.js
+++ b/js/ui/dash.js
@@ -262,11 +262,6 @@ Dash.prototype = {
clip_to_allocation: true });
this._box._delegate = this;
- // This will eventually be automatic, see
- // https://bugzilla.gnome.org/show_bug.cgi?id=584662
- if (St.Widget.get_default_direction () == St.TextDirection.RTL)
- this._box.add_style_pseudo_class('rtl');
-
this.actor = new St.Bin({ y_align: St.Align.START, child: this._box });
this.actor.connect('notify::height', Lang.bind(this,
function() {
diff --git a/js/ui/panel.js b/js/ui/panel.js
index 95dc2bc..7b86db7 100644
--- a/js/ui/panel.js
+++ b/js/ui/panel.js
@@ -813,13 +813,6 @@ Panel.prototype = {
this._centerBox = new St.BoxLayout({ name: 'panelCenter' });
this._rightBox = new St.BoxLayout({ name: 'panelRight' });
- // This will eventually be automatic, see
- // https://bugzilla.gnome.org/show_bug.cgi?id=584662
- if (St.Widget.get_default_direction() == St.TextDirection.RTL) {
- this._leftBox.add_style_pseudo_class('rtl');
- this._rightBox.add_style_pseudo_class('rtl');
- }
-
this._leftCorner = new PanelCorner(St.Side.LEFT);
this._rightCorner = new PanelCorner(St.Side.RIGHT);
diff --git a/js/ui/workspaceThumbnail.js b/js/ui/workspaceThumbnail.js
index d3acd3a..9aeab98 100644
--- a/js/ui/workspaceThumbnail.js
+++ b/js/ui/workspaceThumbnail.js
@@ -402,10 +402,6 @@ ThumbnailsBox.prototype = {
// for the border and padding of the background actor.
this._background = new St.Bin({ style_class: 'workspace-thumbnails-background' });
- // This will eventually be automatic, see https://bugzilla.gnome.org/show_bug.cgi?id=584662
- if (St.Widget.get_default_direction () == St.TextDirection.RTL)
- this._background.add_style_pseudo_class('rtl');
-
this.actor.add_actor(this._background);
let indicator = new St.Bin({ style_class: 'workspace-thumbnail-indicator' });
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]