After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 643834 - workspace: Move close button to the left in RTL locales
workspace: Move close button to the left in RTL locales
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Owen Taylor
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2011-03-04 01:24 UTC by Florian Müllner
Modified: 2011-03-04 21:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
workspace: Move close button to the left in RTL locales (1.21 KB, patch)
2011-03-04 01:24 UTC, Florian Müllner
committed Details | Review

Description Florian Müllner 2011-03-04 01:24:15 UTC
See patch.
Comment 1 Florian Müllner 2011-03-04 01:24:20 UTC
Created attachment 182427 [details] [review]
workspace: Move close button to the left in RTL locales

Mutter reverses the button layout in RTL locales, so we should do
the same for the window previews' close buttons.
Comment 2 Owen Taylor 2011-03-04 19:43:12 UTC
Review of attachment 182427 [details] [review]:

good to commit except for a style issue

::: js/ui/workspace.js
@@ +423,3 @@
         let buttonY = cloneY - button.height + button._overlap;
+        if (St.Widget.get_default_direction() == St.TextDirection.RTL)
+            buttonX = cloneX - (button.width - button._overlap);

While I think this is clearer with the parens, it's pretty weird to have:

 buttonY = cloneY - button.height + button._overlap;
 buttonX = cloneX - (button.width - button._overlap);

so change one or the other
Comment 3 Florian Müllner 2011-03-04 21:49:07 UTC
(In reply to comment #2)
> While I think this is clearer with the parens, it's pretty weird to have:
> 
>  buttonY = cloneY - button.height + button._overlap;
>  buttonX = cloneX - (button.width - button._overlap);
> 
> so change one or the other

Sure.


Attachment 182427 [details] pushed as cf85477 - workspace: Move close button to the left in RTL locales