diff options
author | Morgan Collett <morgan.collett@gmail.com> | 2008-04-01 11:53:52 (GMT) |
---|---|---|
committer | Morgan Collett <morgan.collett@gmail.com> | 2008-04-01 11:53:52 (GMT) |
commit | e379bc74053c3e3971a56bc0c34b0ba56850452f (patch) | |
tree | 4329ba3ff266ddc269f60d5d8c055e9444d45d7b | |
parent | 350cc35d1325977bba309ee82f96483af8856ce2 (diff) |
#6561: Messages should be aligned to the right if buddy name is in Arabic (khaled)
-rw-r--r-- | pippy_app.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pippy_app.py b/pippy_app.py index ee40459..eab551f 100644 --- a/pippy_app.py +++ b/pippy_app.py @@ -287,6 +287,9 @@ class Chat(ViewSourceActivity): xalign=hippo.ALIGNMENT_START) rb.append(message) + if pango.find_base_dir(nick, -1) == pango.DIRECTION_RTL: + rb.reverse() + box = hippo.CanvasBox(padding=2) box.append(rb) self.conversation.append(box) |