6871: Remove vertical grid lines for RTL display

svn: r22883
This commit is contained in:
Nick Hall 2013-08-20 16:06:28 +00:00
parent c727e19ea8
commit 7ccbe938f1

View File

@ -351,6 +351,11 @@ class QuickTable(SimpleTable):
#treeview.enable_model_drag_dest(DdTargets.all_targets(),
# Gdk.DragAction.DEFAULT)
treeview.connect('drag_data_get', self.object_drag_data_get)
if (treeview.get_direction() == Gtk.TextDirection.RTL and
(Gtk.get_major_version(), Gtk.get_minor_version()) < (3, 8)):
# Don't show vertical grid lines with RTL (bug #6871)
treeview.set_grid_lines(Gtk.TreeViewGridLines.HORIZONTAL)
else:
treeview.set_grid_lines(Gtk.TreeViewGridLines.BOTH)
#treeview.connect('row-activated', on_table_doubleclick, self)
#treeview.connect('cursor-changed', on_table_click, self)