[gnome-initial-setup] language: Move some code around



commit 0eb279d1cba4efcb7ab8c1f5182513dd901eb0de
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Jan 2 16:13:29 2013 -0500

    language: Move some code around
    
    This will need to be called from selection_changed so put it first.

 .../pages/language/gis-language-page.c             |   28 ++++++++++----------
 1 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/gnome-initial-setup/pages/language/gis-language-page.c b/gnome-initial-setup/pages/language/gis-language-page.c
index e3cdcd6..700b775 100644
--- a/gnome-initial-setup/pages/language/gis-language-page.c
+++ b/gnome-initial-setup/pages/language/gis-language-page.c
@@ -206,6 +206,20 @@ language_visible (GtkWidget *child,
 }
 
 static void
+show_all_toggled (GtkCheckButton  *button,
+                  GisLanguagePage *page)
+{
+  GisLanguagePagePrivate *priv = page->priv;
+
+  gtk_widget_hide (GTK_WIDGET (button));
+  gtk_widget_show (priv->filter_entry);
+
+  page->priv->showing_extra = TRUE;
+
+  egg_list_box_refilter (EGG_LIST_BOX (priv->language_list));
+}
+
+static void
 selection_changed (EggListBox      *box,
                    GtkWidget       *child,
                    GisLanguagePage *page)
@@ -223,20 +237,6 @@ selection_changed (EggListBox      *box,
 }
 
 static void
-show_all_toggled (GtkCheckButton  *button,
-                  GisLanguagePage *page)
-{
-  GisLanguagePagePrivate *priv = page->priv;
-
-  gtk_widget_hide (GTK_WIDGET (button));
-  gtk_widget_show (priv->filter_entry);
-
-  page->priv->showing_extra = TRUE;
-
-  egg_list_box_refilter (EGG_LIST_BOX (priv->language_list));
-}
-
-static void
 gis_language_page_constructed (GObject *object)
 {
   GisLanguagePage *page = GIS_LANGUAGE_PAGE (object);



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