6871: Remove vertical grid lines for RTL display

svn: r22882
This commit is contained in:
Nick Hall 2013-08-20 16:06:14 +00:00
parent b09ab860b7
commit fd53fccf5e

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)