[gdm/multi-stack: 7/17] Add some debug spew



commit 4b0b0c7a272b1dcbc82dfbe1b5d5406606f490ba
Author: Ray Strode <rstrode redhat com>
Date:   Mon Mar 2 09:37:26 2009 -0500

    Add some debug spew
---
 gui/simple-greeter/gdm-greeter-login-window.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/gui/simple-greeter/gdm-greeter-login-window.c b/gui/simple-greeter/gdm-greeter-login-window.c
index fcb5267..b0c3ae1 100644
--- a/gui/simple-greeter/gdm-greeter-login-window.c
+++ b/gui/simple-greeter/gdm-greeter-login-window.c
@@ -1621,23 +1621,26 @@ on_user_chooser_activated (GdmUserChooserWidget  *user_chooser,
         char *item_id;
 
         user_name = gdm_user_chooser_widget_get_chosen_user_name (GDM_USER_CHOOSER_WIDGET (login_window->priv->user_chooser));
-        g_debug ("GdmGreeterLoginWindow: user chosen '%s'", user_name);
 
         if (user_name != NULL) {
+                g_debug ("GdmGreeterLoginWindow: user chosen '%s'", user_name);
                 on_user_chosen (login_window, user_name);
                 g_free (user_name);
                 return;
         }
 
         item_id = gdm_chooser_widget_get_active_item (GDM_CHOOSER_WIDGET (user_chooser));
+        g_debug ("GdmGreeterLoginWindow: item chosen '%s'", item_id);
 
         if (strcmp (item_id, GDM_USER_CHOOSER_USER_OTHER) == 0) {
+                g_debug ("GdmGreeterLoginWindow: Starting all auth conversations");
                 gdm_task_list_foreach_task (GDM_TASK_LIST (login_window->priv->conversation_list),
                                             (GdmTaskListForeachFunc)
                                             begin_task_verification,
                                             login_window);
                 g_free (item_id);
         } else if (strcmp (item_id, GDM_USER_CHOOSER_USER_AUTO) == 0) {
+                g_debug ("GdmGreeterLoginWindow: Starting auto login");
                 g_signal_emit (login_window, signals[BEGIN_AUTO_LOGIN], 0,
                                login_window->priv->timed_login_username);
 
@@ -1657,8 +1660,11 @@ on_user_chooser_activated (GdmUserChooserWidget  *user_chooser,
                                                    (gpointer) item_id);
 
                 if (task == NULL) {
+                        g_debug ("GdmGreeterLoginWindow: %s has no task associated with it", item_id);
+                        g_free (item_id);
                         return;
                 }
+                g_debug ("GdmGreeterLoginWindow: Beginning auth conversation for item %s", item_id);
 
                 /* FIXME: we should probably give the plugin more say for
                  * what happens here.
@@ -1669,6 +1675,7 @@ on_user_chooser_activated (GdmUserChooserWidget  *user_chooser,
                 gtk_widget_set_sensitive (login_window->priv->conversation_list, FALSE);
         }
 
+        g_debug ("GdmGreeterLoginWindow: Switching to shrunken authentication mode");
         switch_mode (login_window, MODE_AUTHENTICATION);
 }
 



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