Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/jarabe/journal/expandedentry.py
diff options
context:
space:
mode:
authorManuel Quiñones <manuq@laptop.org>2012-12-17 12:13:54 (GMT)
committer Manuel Quiñones <manuq@laptop.org>2012-12-17 14:04:06 (GMT)
commit52076ffdd0d7d107e86b7559955cc6a56fd3bc14 (patch)
tree7e946986f65cbdd8c17ae6a87525c89100978c6b /src/jarabe/journal/expandedentry.py
parent69d57789feb2b5a2b07b8489f2511b4c8c8bd411 (diff)
Journal: fix layout reordering for right-to-left languages - SL #4328
This was introduced in the de-hippo move. reverse() was a method of hippo.CanvasBox . Now using Gtk boxes can do: for child in box.get_children(): box.reorder_child(child, 0) Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
Diffstat (limited to 'src/jarabe/journal/expandedentry.py')
-rw-r--r--src/jarabe/journal/expandedentry.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/jarabe/journal/expandedentry.py b/src/jarabe/journal/expandedentry.py
index d2188c4..5959d2a 100644
--- a/src/jarabe/journal/expandedentry.py
+++ b/src/jarabe/journal/expandedentry.py
@@ -106,7 +106,9 @@ class ExpandedEntry(Gtk.EventBox):
header.pack_start(self._date, False, False, style.DEFAULT_SPACING)
if Gtk.Widget.get_default_direction() == Gtk.TextDirection.RTL:
- header.reverse()
+ # Reverse header children.
+ for child in header.get_children():
+ header.reorder_child(child, 0)
# First body column
self._preview_box = Gtk.Frame()