[gnome-initial-setup] Account: Don't allow changing the fields after the user is created



commit cbe0793be3bdc6815196cbeb68b31233c4818461
Author: Michael Wood <michael g wood intel com>
Date:   Wed Apr 24 21:16:52 2013 +0100

    Account: Don't allow changing the fields after the user is created
    
    If the user presses back and changes details it would be an unexpected
    result to have the details not change, however we have already created
    the new account by this point.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=698643

 .../pages/account/gis-account-page.c               |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gnome-initial-setup/pages/account/gis-account-page.c 
b/gnome-initial-setup/pages/account/gis-account-page.c
index 05c8a36..1e1a8d0 100644
--- a/gnome-initial-setup/pages/account/gis-account-page.c
+++ b/gnome-initial-setup/pages/account/gis-account-page.c
@@ -453,6 +453,11 @@ create_user (GisAccountPage *page)
     g_warning ("Failed to create user: %s", error->message);
     g_error_free (error);
   }
+  /* TODO:We don't support coming back to this page to modify the values after
+   * the user has been created. For now just disable it
+   */
+  gtk_widget_set_sensitive (GTK_WIDGET (page), FALSE);
+  gtk_widget_set_sensitive (priv->action, FALSE);
 }
 
 static void save_account_data (GisAccountPage *page);


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