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 790341 - Ctrl-navigation works in opposite direction in right-to-left text
Ctrl-navigation works in opposite direction in right-to-left text
Status: RESOLVED DUPLICATE of bug 136059
Product: gtk+
Classification: Platform
Component: Widget: GtkTextView
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2017-11-14 19:38 UTC by Mehdi Sadeghi
Modified: 2017-11-15 11:33 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Mehdi Sadeghi 2017-11-14 19:38:21 UTC
While editing right-to-left text, such as Persian, Arabic and Hebrew, the cursor word-by-word movement is wrong (by holding down ctrl and pressing left/right arrow keys).

This was a known and very old bug in GTK. Any GUI based on GTKTextView and GTKSourceView was affected, such as gedit. More than six months ago, we fixed GTK bug, however. Programs based on recent GTK releases function as expected, including gedit.

Surprisingly, this bug is yet present in pygtk, even though it is fixed upstream. (I check that with running pygtk demo). And it continues to affect programs such as Zim wiki. (which is how I realized the bug is there)


I would like to help fix this but I have no idea how things work in pygtk. I would appreciate any comments on this.

For more information on the fixed GTK bug see: https://bugzilla.gnome.org/show_bug.cgi?id=136059
Comment 1 Christoph Reiter (lazka) 2017-11-14 20:20:40 UTC
Since pygtk uses GTK+2 (and the gtk+2 variant of GTKSourceView) this likely was only fixed in the GTK+3 branch and was not backported. I don't know if it would be possible to backport that change.

Changing this from pygtk to gtk+ and CCing dboles who worked on the fix you referenced and who might know more about this.
Comment 2 Daniel Boles 2017-11-15 10:57:42 UTC
I did backport the patches to GTK+ 2, but I can't speak for when or even whether there'll be another release of that branch. I know that GIMP are wanting one, but I don't know whether anyone has specifically approached the maintainers to request it. You could try that!

*** This bug has been marked as a duplicate of bug 136059 ***
Comment 3 Mehdi Sadeghi 2017-11-15 11:33:34 UTC
Thanks for the info Daniel. I asked on the IRC and was told that Matthias Clasen is the maintainer. However I was unable to find him on IRC. I'll add him to the CC list hoping that he sees this thread.