From 22d4c1dd2cc2eb0b34e5bb930ad2258e3ea0b0ca Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Tue, 20 Aug 2013 16:05:49 +0000 Subject: [PATCH] 6871: Remove vertical grid lines for RTL display svn: r22881 --- src/Simple/_SimpleTable.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Simple/_SimpleTable.py b/src/Simple/_SimpleTable.py index 02daca149..b7c6607b2 100644 --- a/src/Simple/_SimpleTable.py +++ b/src/Simple/_SimpleTable.py @@ -507,7 +507,11 @@ class SimpleTable(object): #treeview.enable_model_drag_dest(DdTargets.all_targets(), # gtk.gdk.ACTION_DEFAULT) treeview.connect('drag_data_get', self.object_drag_data_get) - treeview.set_grid_lines(gtk.TREE_VIEW_GRID_LINES_BOTH) + if treeview.get_direction() == gtk.TEXT_DIR_RTL: + # Don't show vertical grid lines with RTL (bug #6871) + treeview.set_grid_lines(gtk.TREE_VIEW_GRID_LINES_HORIZONTAL) + else: + treeview.set_grid_lines(gtk.TREE_VIEW_GRID_LINES_BOTH) #treeview.connect('row-activated', on_table_doubleclick, self) #treeview.connect('cursor-changed', on_table_click, self) treeview.connect('button-press-event', self.button_press_event)