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 556639 - BiDi problem if tree_lines is enabled in a TreeView widget
BiDi problem if tree_lines is enabled in a TreeView widget
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkTreeView
2.10.x
Other All
: Normal normal
: ---
Assigned To: gtktreeview-bugs
gtktreeview-bugs
Depends on:
Blocks:
 
 
Reported: 2008-10-16 20:54 UTC by muayyad alsadi
Modified: 2009-07-15 18:10 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
testcase, a PyGTK+ application (2.13 KB, text/plain)
2008-10-16 20:57 UTC, muayyad alsadi
Details
treeview in Enlish locale (14.40 KB, image/png)
2008-10-16 20:59 UTC, muayyad alsadi
Details
screenshot of the testcase in Arabic Locale (14.34 KB, image/png)
2008-10-16 21:01 UTC, muayyad alsadi
Details

Description muayyad alsadi 2008-10-16 20:54:17 UTC
Please describe the problem:
if gtk_tree_view_set_enable_tree_lines is enabled in a right to left locale (eg. Arabic) lines will be drawn on the left

Steps to reproduce:
1. call gtk_tree_view_set_enable_tree_lines(treeview,true)
2. compile it
3. LC_ALL=ar_JO.UTF-8 ./my_app


Actual results:
lines are on the left

Expected results:
lines on the right

Does this happen every time?
yes

Other information:
Comment 1 muayyad alsadi 2008-10-16 20:57:44 UTC
Created attachment 120756 [details]
testcase, a PyGTK+ application

the example from
http://www.pygtk.org/pygtk2tutorial/ch-TreeViewWidget.html#basictreeviewfig
with self.treeview.set_enable_tree_lines(True) and self.treeview.expand_all()
Comment 2 muayyad alsadi 2008-10-16 20:59:10 UTC
Created attachment 120757 [details]
treeview in Enlish locale
Comment 3 muayyad alsadi 2008-10-16 21:01:40 UTC
Created attachment 120758 [details]
screenshot of the testcase in Arabic Locale

screenshot of testcase in Arabic locale
notice how the lines are drawn in an incorrect location
they should be on right