[gnome-initial-setup] language: Make clicking on the "No results" entry do nothing



commit 9eaedb0d6bbd6e7cf87b1b2daf20db3ef624aeaa
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Jan 17 19:14:51 2013 -0500

    language: Make clicking on the "No results" entry do nothing
    
    Although we set the "No results" widget to be insensitive, EggListBox
    doesn't respect the flag yet, so just take the easy road for now.

 .../pages/language/gis-language-page.c             |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/gnome-initial-setup/pages/language/gis-language-page.c b/gnome-initial-setup/pages/language/gis-language-page.c
index 741629e..adfc15a 100644
--- a/gnome-initial-setup/pages/language/gis-language-page.c
+++ b/gnome-initial-setup/pages/language/gis-language-page.c
@@ -287,15 +287,15 @@ child_activated (EggListBox      *box,
 
   if (child == NULL)
     return;
-
-  if (child == page->priv->more_item)
+  else if (child == page->priv->no_results)
+    return;
+  else if (child == page->priv->more_item)
+    show_more (page);
+  else
     {
-      show_more (page);
-      return;
+      new_locale_id = g_object_get_data (G_OBJECT (child), "locale-id");
+      set_locale_id (page, new_locale_id);
     }
-
-  new_locale_id = g_object_get_data (G_OBJECT (child), "locale-id");
-  set_locale_id (page, new_locale_id);
 }
 
 typedef struct {



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