6814: Fix gramplet positioning when using RTL locale
svn: r22557
This commit is contained in:
parent
d03fc19188
commit
d30ade0488
@ -1272,6 +1272,9 @@ class GrampletPane(Gtk.ScrolledWindow):
|
|||||||
mainframe = mframe.get_parent() # actually a vbox
|
mainframe = mframe.get_parent() # actually a vbox
|
||||||
rect = source.get_allocation()
|
rect = source.get_allocation()
|
||||||
sx, sy = rect.width, rect.height
|
sx, sy = rect.width, rect.height
|
||||||
|
# Convert to LTR co-ordinates when using RTL locale
|
||||||
|
if source.get_direction() == Gtk.TextDirection.RTL:
|
||||||
|
x = sx - x
|
||||||
# first, find column:
|
# first, find column:
|
||||||
col = 0
|
col = 0
|
||||||
for i in range(len(self.columns)):
|
for i in range(len(self.columns)):
|
||||||
|
Loading…
Reference in New Issue
Block a user