6871: Remove vertical grid lines for RTL display
svn: r22882
This commit is contained in:
parent
b09ab860b7
commit
fd53fccf5e
@ -351,6 +351,11 @@ class QuickTable(SimpleTable):
|
|||||||
#treeview.enable_model_drag_dest(DdTargets.all_targets(),
|
#treeview.enable_model_drag_dest(DdTargets.all_targets(),
|
||||||
# Gdk.DragAction.DEFAULT)
|
# Gdk.DragAction.DEFAULT)
|
||||||
treeview.connect('drag_data_get', self.object_drag_data_get)
|
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.set_grid_lines(Gtk.TreeViewGridLines.BOTH)
|
||||||
#treeview.connect('row-activated', on_table_doubleclick, self)
|
#treeview.connect('row-activated', on_table_doubleclick, self)
|
||||||
#treeview.connect('cursor-changed', on_table_click, self)
|
#treeview.connect('cursor-changed', on_table_click, self)
|
||||||
|
Loading…
Reference in New Issue
Block a user