6871: Remove vertical grid lines for RTL display
svn: r22881
This commit is contained in:
parent
024629c2e1
commit
22d4c1dd2c
@ -507,7 +507,11 @@ class SimpleTable(object):
|
|||||||
#treeview.enable_model_drag_dest(DdTargets.all_targets(),
|
#treeview.enable_model_drag_dest(DdTargets.all_targets(),
|
||||||
# gtk.gdk.ACTION_DEFAULT)
|
# gtk.gdk.ACTION_DEFAULT)
|
||||||
treeview.connect('drag_data_get', self.object_drag_data_get)
|
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('row-activated', on_table_doubleclick, self)
|
||||||
#treeview.connect('cursor-changed', on_table_click, self)
|
#treeview.connect('cursor-changed', on_table_click, self)
|
||||||
treeview.connect('button-press-event', self.button_press_event)
|
treeview.connect('button-press-event', self.button_press_event)
|
||||||
|
Loading…
Reference in New Issue
Block a user