[gnome-initial-setup] language-page: Update checkmarks dynamically



commit 29464577b964d0ca340918fca79b76b20fb1b5e6
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Feb 13 17:16:33 2013 -0500

    language-page: Update checkmarks dynamically

 .../pages/language/gis-language-page.c             |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/gnome-initial-setup/pages/language/gis-language-page.c b/gnome-initial-setup/pages/language/gis-language-page.c
index d697d84..1585172 100644
--- a/gnome-initial-setup/pages/language/gis-language-page.c
+++ b/gnome-initial-setup/pages/language/gis-language-page.c
@@ -424,9 +424,27 @@ gis_language_page_constructed (GObject *object)
 }
 
 static void
+sync_checkmark (GtkWidget *child,
+                gpointer   user_data)
+{
+  LanguageWidget *widget = get_language_widget (child);
+
+  if (widget == NULL)
+    return;
+
+  language_widget_sync_show_checkmark (widget);
+}
+
+static void
 gis_language_page_locale_changed (GisPage *page)
 {
+  GisLanguagePagePrivate *priv = GIS_LANGUAGE_PAGE (page)->priv;
+
   gis_page_set_title (GIS_PAGE (page), _("Welcome"));
+
+  if (priv->language_list)
+    gtk_container_foreach (GTK_CONTAINER (priv->language_list),
+                           sync_checkmark, NULL);
 }
 
 static void


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