[gnome-initial-setup] driver: update GTK text direction when locale changes
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] driver: update GTK text direction when locale changes
- Date: Mon, 12 Jun 2017 16:43:17 +0000 (UTC)
commit db0b19da1144b6aa5538a88750f6f14651586bb6
Author: Cosimo Cecchi <cosimo endlessm com>
Date: Wed Sep 17 17:21:54 2014 -0700
driver: update GTK text direction when locale changes
This fixes issues when switching between a RTL and LTR locale from the
initial language list.
https://bugzilla.gnome.org/show_bug.cgi?id=783388
gnome-initial-setup/gis-driver.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gnome-initial-setup/gis-driver.c b/gnome-initial-setup/gis-driver.c
index 1a48720..989f47a 100644
--- a/gnome-initial-setup/gis-driver.c
+++ b/gnome-initial-setup/gis-driver.c
@@ -225,6 +225,11 @@ static void
gis_driver_real_locale_changed (GisDriver *driver)
{
GisDriverPrivate *priv = gis_driver_get_instance_private (driver);
+ GtkTextDirection direction;
+
+ direction = gtk_get_locale_direction ();
+ gtk_widget_set_default_direction (direction);
+
rebuild_pages (driver);
gis_assistant_locale_changed (priv->assistant);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]