[gnome-initial-setup] Fix up navigation on the goa page



commit b953aede47b831ed02e2d6002b7af9eebee6add3
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Feb 24 22:59:09 2014 -0500

    Fix up navigation on the goa page
    
    We were counting accounts as existing, even if they did
    not belong to one of the shown providers, and we were never
    setting the page as complete.

 gnome-initial-setup/pages/goa/gis-goa-page.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gnome-initial-setup/pages/goa/gis-goa-page.c b/gnome-initial-setup/pages/goa/gis-goa-page.c
index 8b57e9e..c6dfdc5 100644
--- a/gnome-initial-setup/pages/goa/gis-goa-page.c
+++ b/gnome-initial-setup/pages/goa/gis-goa-page.c
@@ -202,7 +202,6 @@ sync_accounts (GisGoaPage *page)
   GList *accounts, *l;
 
   accounts = goa_client_get_accounts (priv->goa_client);
-  priv->accounts_exist = (accounts != NULL);
 
   for (l = accounts; l != NULL; l = l->next) {
     GoaObject *object = GOA_OBJECT (l->data);
@@ -213,6 +212,9 @@ sync_accounts (GisGoaPage *page)
     provider_widget = g_hash_table_lookup (priv->providers, account_type);
     if (!provider_widget)
       continue;
+
+    priv->accounts_exist = TRUE;
+
     if (provider_widget->displayed_account)
       continue;
 
@@ -224,6 +226,7 @@ sync_accounts (GisGoaPage *page)
 
   sync_visibility (page);
   gis_page_set_skippable (GIS_PAGE (page), !priv->accounts_exist);
+  gis_page_set_complete (GIS_PAGE (page), priv->accounts_exist);
 }
 
 static void


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