From 17e42e712a6fec636e457930b085b5a09dbd203f Mon Sep 17 00:00:00 2001 From: Brian Cameron Date: Mon, 9 Apr 2007 09:11:00 +0000 Subject: When the user changes language, GDM pops up a dialog asking if the user 2007-04-09 Brian Cameron * 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 --- ChangeLog | 7 +++++++ gui/gdmlanguages.c | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9cb79b6d..bdcf689e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-04-09 Brian Cameron + + * 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. + 2007-04-09 Brian Cameron * gui/gdmflexiserver.c: Mark error strings for translation. 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)) { -- cgit v1.2.1