Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2008-08-07 13:22:50 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2008-08-07 13:22:50 (GMT)
commit1994e54442ad94a130f22f9ae9a06c779e2760c6 (patch)
treed70c16435c0fe34123498d29bd63ea9bda687375
parent89207678fe4c2d04136335a334c680ff52f9dabb (diff)
Mirror the intro screen in rtl. Patch by Khaled Kosny.
Minor changes by me. Fix #3108
-rw-r--r--src/intro/intro.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/intro/intro.py b/src/intro/intro.py
index 18092c3..342ce1d 100644
--- a/src/intro/intro.py
+++ b/src/intro/intro.py
@@ -74,6 +74,9 @@ class _NamePage(_Page):
self.append(self._entry)
+ if gtk.widget_get_default_direction() == gtk.TEXT_DIR_RTL:
+ self.reverse()
+
def _text_changed_cb(self, entry, pspec):
valid = len(entry.props.text.strip()) > 0
self.set_valid(valid)
@@ -171,6 +174,9 @@ class _IntroBox(hippo.CanvasBox):
self._page_valid_changed_cb)
self.append(button_box)
+ if gtk.widget_get_default_direction() == gtk.TEXT_DIR_RTL:
+ button_box.reverse()
+
def _update_next_button(self):
widget = self._next_button.props.widget
widget.props.sensitive = self._current_page.props.valid