[gnome-initial-setup] language: Emit locale changed signal only after everything else
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] language: Emit locale changed signal only after everything else
- Date: Wed, 17 Sep 2014 14:51:36 +0000 (UTC)
commit 467e8b914054a0eb961276e1da7ba58f8ad49964
Author: Rui Matos <tiagomatos gmail com>
Date: Tue Sep 16 19:18:15 2014 +0200
language: Emit locale changed signal only after everything else
This signal is used to rebuild all pages and they might want to check
the current language during initialization so we should only emit it
after we set everything.
https://bugzilla.gnome.org/show_bug.cgi?id=736763
.../pages/language/gis-language-page.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gnome-initial-setup/pages/language/gis-language-page.c
b/gnome-initial-setup/pages/language/gis-language-page.c
index d13d3ac..9bf3250 100644
--- a/gnome-initial-setup/pages/language/gis-language-page.c
+++ b/gnome-initial-setup/pages/language/gis-language-page.c
@@ -121,7 +121,6 @@ language_changed (CcLanguageChooser *chooser,
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) {
if (g_permission_get_allowed (priv->permission)) {
@@ -148,6 +147,8 @@ language_changed (CcLanguageChooser *chooser,
gis_welcome_widget_show_locale (GIS_WELCOME_WIDGET (priv->welcome_widget),
priv->new_locale_id);
+
+ gis_driver_locale_changed (driver);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]