[gnome-initial-setup] Update text direction on language change



commit 955968735828bfd7245b345c618dee52e04ee3a9
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Dec 12 00:15:47 2013 -0500

    Update text direction on language change
    
    GTK+ now has an api to determine the text direction according
    to the current locale. Use that to update text direction when
    the selected language changes.
    
    Bump the GTK+ requirement to 3.11.3.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720302

 configure.ac                                       |    2 +-
 .../pages/language/gis-language-page.c             |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 6d6eab0..7d4eeec 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,7 +16,7 @@ AM_GLIB_GNU_GETTEXT
 
 NETWORK_MANAGER_REQUIRED_VERSION=0.9.6.4
 GLIB_REQUIRED_VERSION=2.36.0
-GTK_REQUIRED_VERSION=3.7.11
+GTK_REQUIRED_VERSION=3.11.3
 PANGO_REQUIRED_VERSION=1.32.5
 IBUS_REQUIRED_VERSION=1.4.99
 GNOME_DESKTOP_REQUIRED_VERSION=3.7.5
diff --git a/gnome-initial-setup/pages/language/gis-language-page.c 
b/gnome-initial-setup/pages/language/gis-language-page.c
index c5c98e0..b9d6324 100644
--- a/gnome-initial-setup/pages/language/gis-language-page.c
+++ b/gnome-initial-setup/pages/language/gis-language-page.c
@@ -121,6 +121,7 @@ language_changed (CcLanguageChooser  *chooser,
   driver = GIS_PAGE (page)->driver;
 
   setlocale (LC_MESSAGES, priv->new_locale_id);
+  gtk_widget_set_default_direction (gtk_get_locale_direction ());
   gis_driver_locale_changed (driver);
 
   if (gis_driver_get_mode (driver) == GIS_DRIVER_MODE_NEW_USER) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]