diff options
author | Brian Cameron <brian.cameron@sun.com> | 2007-04-09 09:11:00 +0000 |
---|---|---|
committer | Brian Cameron <bcameron@src.gnome.org> | 2007-04-09 09:11:00 +0000 |
commit | 17e42e712a6fec636e457930b085b5a09dbd203f (patch) | |
tree | 05191e7f0e3b93340a2590245729f4f806b7b82c /gui | |
parent | 4f2555c2bf6c1b72176891b908f26a094bf46eee (diff) | |
download | gdm-17e42e712a6fec636e457930b085b5a09dbd203f.tar.gz |
When the user changes language, GDM pops up a dialog asking if the user
2007-04-09 Brian Cameron <brian.cameron@sun.com>
* gui/gdmlanguages.c: When the user changes language, GDM pops up
a dialog asking if the user wants to restart GDM. If the user
picks "No", the new language should still be applied for when the
session starts. This patch fixes this.
svn path=/trunk/; revision=4816
Diffstat (limited to 'gui')
-rw-r--r-- | gui/gdmlanguages.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gui/gdmlanguages.c b/gui/gdmlanguages.c index da167a3c..0366a9f3 100644 --- a/gui/gdmlanguages.c +++ b/gui/gdmlanguages.c @@ -1044,8 +1044,9 @@ gdm_lang_handler (gpointer user_data) if (strcmp (dialog_selected_language, LAST_LANGUAGE)) response = gdm_lang_ask_restart (dialog_selected_language); - if (response == GTK_RESPONSE_YES) - gdm_lang_set ((char *) dialog_selected_language); + + gdm_lang_set ((char *) dialog_selected_language); + if (strcmp (dialog_selected_language, LAST_LANGUAGE) && (response == GTK_RESPONSE_YES)) { |