gdm r5852 - in trunk: . gui/simple-greeter



Author: halfline
Date: Mon Feb 25 21:02:36 2008
New Revision: 5852
URL: http://svn.gnome.org/viewvc/gdm?rev=5852&view=rev

Log:
2008-02-25  Ray Strode  <rstrode redhat com>

	* gui/simple-greeter/gdm-language-chooser-dialog.[ch]:
	(gdm_language_chooser_set_current_language_name):
	New function to let the language option widget change
	which language to show in its chooser dialog


Modified:
   trunk/ChangeLog
   trunk/gui/simple-greeter/gdm-language-chooser-dialog.c
   trunk/gui/simple-greeter/gdm-language-chooser-dialog.h

Modified: trunk/gui/simple-greeter/gdm-language-chooser-dialog.c
==============================================================================
--- trunk/gui/simple-greeter/gdm-language-chooser-dialog.c	(original)
+++ trunk/gui/simple-greeter/gdm-language-chooser-dialog.c	Mon Feb 25 21:02:36 2008
@@ -59,6 +59,16 @@
         return language_name;
 }
 
+void
+gdm_language_chooser_dialog_set_current_language_name (GdmLanguageChooserDialog *dialog,
+                                                       const char               *language_name)
+{
+
+        g_return_if_fail (GDM_IS_LANGUAGE_CHOOSER_DIALOG (dialog));
+
+        gdm_language_chooser_widget_set_current_language_name (GDM_LANGUAGE_CHOOSER_WIDGET (dialog->priv->chooser_widget), language_name);
+}
+
 static void
 gdm_language_chooser_dialog_size_request (GtkWidget      *widget,
                                        GtkRequisition *requisition)

Modified: trunk/gui/simple-greeter/gdm-language-chooser-dialog.h
==============================================================================
--- trunk/gui/simple-greeter/gdm-language-chooser-dialog.h	(original)
+++ trunk/gui/simple-greeter/gdm-language-chooser-dialog.h	Mon Feb 25 21:02:36 2008
@@ -51,6 +51,8 @@
 GtkWidget            * gdm_language_chooser_dialog_new                            (void);
 
 char *                 gdm_language_chooser_dialog_get_current_language_name      (GdmLanguageChooserDialog *dialog);
+void                   gdm_language_chooser_dialog_set_current_language_name      (GdmLanguageChooserDialog *dialog,
+     const char               *language_name);
 
 G_END_DECLS
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]