[gnome-shell/gnome-3-6] messageTray: Fix close button position in RTL locales
- From: Florian MÃllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-6] messageTray: Fix close button position in RTL locales
- Date: Fri, 26 Oct 2012 10:54:43 +0000 (UTC)
commit a598b06496179722d26ad6eb77eb016672b1c54f
Author: Florian MÃllner <fmuellner gnome org>
Date: Thu Oct 25 18:51:43 2012 +0200
messageTray: Fix close button position in RTL locales
https://bugzilla.gnome.org/show_bug.cgi?id=686879
js/ui/messageTray.js | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 34ffc89..6d51b45 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -242,7 +242,10 @@ function makeCloseButton() {
closeButton.connect('style-changed', function() {
let themeNode = closeButton.get_theme_node();
- closeButton.translation_x = themeNode.get_length('-shell-close-overlap-x');
+
+ // libcroco doesn't support negative units
+ let direction = closeButton.get_text_direction() == Clutter.TextDirection.RTL ? -1 : 1;
+ closeButton.translation_x = direction * themeNode.get_length('-shell-close-overlap-x');
// libcroco doesn't support negative units
closeButton.translation_y = -themeNode.get_length('-shell-close-overlap-y');
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]