[gdm/wip/initial-setup] Don't allow proceeding without creating an account



commit 0087502296870edf7ce77aaefccaf209ecb644f0
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue May 17 14:55:35 2011 -0400

    Don't allow proceeding without creating an account

 gui/initial-setup/gdm-initial-setup.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gui/initial-setup/gdm-initial-setup.c b/gui/initial-setup/gdm-initial-setup.c
index 9db0ec5..c3e8250 100644
--- a/gui/initial-setup/gdm-initial-setup.c
+++ b/gui/initial-setup/gdm-initial-setup.c
@@ -1073,6 +1073,8 @@ save_account_data (SetupData *setup)
                 create_user (setup);
         }
 
+        g_assert (setup->act_user);
+
         if (!act_user_is_loaded (setup->act_user)) {
                 if (when_loaded == 0)
                         when_loaded = g_signal_connect (setup->act_user, "notify::is-loaded",
@@ -1370,7 +1372,8 @@ close_cb (GtkAssistant *assi, gpointer data)
 static void
 prepare_cb (GtkAssistant *assi, GtkWidget *page, SetupData *setup)
 {
-        gtk_assistant_set_page_complete (assi, page, TRUE);
+        if (page != WID("account-page"))
+                gtk_assistant_set_page_complete (assi, page, TRUE);
         save_account_data (setup);
 }
 



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