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 636083 - workspace: Consider text direction when switching
workspace: Consider text direction when switching
Status: RESOLVED FIXED
Product: mutter
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: mutter-maint
mutter-maint
Depends on:
Blocks:
 
 
Reported: 2010-11-29 20:25 UTC by Florian Müllner
Modified: 2010-11-29 20:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
workspace: Consider text direction when switching (1.79 KB, patch)
2010-11-29 20:25 UTC, Florian Müllner
committed Details | Review

Description Florian Müllner 2010-11-29 20:25:03 UTC
See attached patch. Related to gnome-shell bug 634691.
Comment 1 Florian Müllner 2010-11-29 20:25:06 UTC
Created attachment 175492 [details] [review]
workspace: Consider text direction when switching

A direction parameter is passed to meta_compositor_switch_workspace(),
to indicate the direction of the switch depending on the workspace
layout.
In contrast to the switcher popup, this parameter does not take the
text direction of the locale into account. Change this, so that the
workspace order appears correctly when running under RTL locales.
Comment 2 Owen Taylor 2010-11-29 20:31:56 UTC
Review of attachment 175492 [details] [review]:

Looks fine, though I'd sneak in an else into:

+       if (layout1.current_col > layout2.current_col)
+         direction = META_MOTION_RIGHT;
+       if (layout1.current_col < layout2.current_col)
+         direction = META_MOTION_LEFT;

as long as you are changing that code.

And:

Change this, so that the
workspace order appears correctly when running under RTL locales.

isn't right? it's should be "workspace switching animations move in the correct direction?"
Comment 3 Florian Müllner 2010-11-29 20:47:00 UTC
Attachment 175492 [details] pushed as 6b98644 - workspace: Consider text direction when switching

(In reply to comment #2)
> Looks fine, though I'd sneak in an else into:

Done.


> it should be "workspace switching animations move in the correct
> direction?"

Hmm, yeah ... fixed as well.