[gnome-initial-setup/shell/4765: 231/362] driver: update GTK text direction when locale changes
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup/shell/4765: 231/362] driver: update GTK text direction when locale changes
- Date: Thu, 19 Mar 2015 01:40:29 +0000 (UTC)
commit f74f519914b0eb18a460c99c2e0f3f7b1defbc6e
Author: Cosimo Cecchi <cosimo endlessm com>
Date: Wed Sep 17 17:21:54 2014 -0700
driver: update GTK text direction when locale changes
[endlessm/eos-shell#3405]
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 f929bbc..8fdccd4 100644
--- a/gnome-initial-setup/gis-driver.c
+++ b/gnome-initial-setup/gis-driver.c
@@ -169,7 +169,12 @@ static void
gis_driver_real_locale_changed (GisDriver *driver)
{
GisDriverPrivate *priv = gis_driver_get_instance_private (driver);
+ GtkTextDirection direction;
+
g_idle_add ((GSourceFunc) rebuild_pages, driver);
+
+ direction = gtk_get_locale_direction ();
+ gtk_widget_set_default_direction (direction);
gis_assistant_locale_changed (priv->assistant);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]