From e379bc74053c3e3971a56bc0c34b0ba56850452f Mon Sep 17 00:00:00 2001 From: Morgan Collett Date: Tue, 01 Apr 2008 11:53:52 +0000 Subject: #6561: Messages should be aligned to the right if buddy name is in Arabic (khaled) --- (limited to 'pippy_app.py') 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) -- cgit v0.9.1