[PATCH] Reset the text direction as soon as the locale is changed

David Shea dshea at redhat.com
Tue May 20 19:33:26 UTC 2014


---
 pyanaconda/ui/gui/spokes/welcome.py | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/welcome.py b/pyanaconda/ui/gui/spokes/welcome.py
index 4acf361..31603b8 100644
--- a/pyanaconda/ui/gui/spokes/welcome.py
+++ b/pyanaconda/ui/gui/spokes/welcome.py
@@ -81,9 +81,6 @@ class WelcomeLanguageSpoke(LangLocaleHandler, StandaloneSpoke):
             # current language
             self.data.timezone.timezone = loc_timezones[0]
 
-        # setup Gtk direction (RTL/LTR) now that we have the language
-        # configuration applied
-        setup_gtk_direction()
         self._set_keyboard_defaults(self.data.lang.lang)
 
     def _set_keyboard_defaults(self, locale):
@@ -300,6 +297,12 @@ class WelcomeLanguageSpoke(LangLocaleHandler, StandaloneSpoke):
             localization.setup_locale(lang)
             self.retranslate(lang)
 
+            # Reset the text direction
+            setup_gtk_direction()
+
+            # Redraw the window to reset the sidebar to where it needs to be
+            self.window.queue_draw()
+
     # Override the default in StandaloneSpoke so we can display the beta
     # warning dialog first.
     def _on_continue_clicked(self, cb):
-- 
1.9.0



More information about the anaconda-patches mailing list