gdm r5672 - in trunk: . gui/simple-greeter
- From: halfline svn gnome org
- To: svn-commits-list gnome org
- Subject: gdm r5672 - in trunk: . gui/simple-greeter
- Date: Fri, 1 Feb 2008 17:01:02 +0000 (GMT)
Author: halfline
Date: Fri Feb 1 17:01:01 2008
New Revision: 5672
URL: http://svn.gnome.org/viewvc/gdm?rev=5672&view=rev
Log:
2008-02-01 Ray Strode <rstrode redhat com>
* gui/simple-greeter/gdm-language-chooser-widget.c
(gdm_language_chooser_widget_get_current_language_name):
if the language list couldn't be loaded (for whatever reason),
return current locale instead of null
Modified:
trunk/ChangeLog
trunk/gui/simple-greeter/gdm-language-chooser-widget.c
Modified: trunk/gui/simple-greeter/gdm-language-chooser-widget.c
==============================================================================
--- trunk/gui/simple-greeter/gdm-language-chooser-widget.c (original)
+++ trunk/gui/simple-greeter/gdm-language-chooser-widget.c Fri Feb 1 17:01:01 2008
@@ -65,6 +65,10 @@
g_return_val_if_fail (GDM_IS_LANGUAGE_CHOOSER_WIDGET (widget), NULL);
language_name = gdm_chooser_widget_get_active_item (GDM_CHOOSER_WIDGET (widget));
+
+ if (language_name == NULL) {
+ language_name = g_strdup (g_get_language_names ()[0]);
+ }
return language_name;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]