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 387897 - When in rtl locale, the first workspace should be the right most one in the pager
When in rtl locale, the first workspace should be the right most one in the p...
Status: RESOLVED FIXED
Product: libwnck
Classification: Core
Component: pager
git master
Other Linux
: Normal normal
: ---
Assigned To: libwnck maintainers
libwnck maintainers
Depends on:
Blocks: Hebrew
 
 
Reported: 2006-12-20 13:10 UTC by Yair Hershkovitz
Modified: 2007-02-12 21:39 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
count workspace from right to left in rtl locales (675 bytes, patch)
2006-12-20 13:12 UTC, Yair Hershkovitz
needs-work Details | Review
patch (829 bytes, patch)
2007-02-05 23:55 UTC, Vincent Untz
committed Details | Review

Description Yair Hershkovitz 2006-12-20 13:10:00 UTC
In the current situation, pressing the "move workspace to the right/left" keybindings in metacity resolves in a wierd situation: In the metacity popup, the 1st workspace is the right most one, and in the workspace applet, the first workspace in the left most one.

I believe that metacity behavior is correct, and the fix should be in libwnck.
Comment 1 Yair Hershkovitz 2006-12-20 13:12:17 UTC
Created attachment 78692 [details] [review]
count workspace from right to left in rtl locales
Comment 2 Yair Hershkovitz 2006-12-20 13:14:23 UTC
http://bugzilla.gnome.org/show_bug.cgi?id=387893 should be solved together with this bug
Comment 3 Vincent Untz 2007-01-04 13:37:55 UTC
Patch looks okay, but I'm surprised that's enough to fix this bug: it looks too easy :-) I'll take a deeper look at pager.c before the next release.
Comment 4 Vincent Untz 2007-02-05 23:50:26 UTC
The patch doesn't work when you have more than one row. I'll try to find a quick fix, but since it's late I might go to sleep before finishing...

Also, I'd love to know if changing the current workspace with the scrollwheel works in the right way in RTL too (once this bug is fixed). I guess it should be updated for RTL.
Comment 5 Vincent Untz 2007-02-05 23:55:53 UTC
Created attachment 81964 [details] [review]
patch

Could you test this patch and see if it works?

Also, you need to verify that it works for an applet on a vertical panel. I believe it's okay.
Comment 6 Vincent Untz 2007-02-05 23:57:19 UTC
Btw, Elijah, you'll need to fix this in metacity too :-)
Comment 7 Yair Hershkovitz 2007-02-06 07:08:23 UTC
Since the pager is always displayed in a horizontal way, it's ok.

But, if the pager would be drawn vertically on a vertical panel (like the menu bar applet is drawn) then the fix will only be wanted for horizontal panels.

For now, this patch works just fine.
Comment 8 Behdad Esfahbod 2007-02-07 04:22:16 UTC
CCing myself.
Comment 9 Vincent Untz 2007-02-12 21:39:52 UTC
Committed.