[gdm/multi-stack: 35/35] hide task actions more aggressively



commit 212f47d46fd17da9e4b635064ed158395a69f40e
Author: Ray Strode <rstrode redhat com>
Date:   Mon Aug 9 18:09:19 2010 -0400

    hide task actions more aggressively
    
    This fixes "dual login buttons" after the user hits cancel.

 gui/simple-greeter/gdm-greeter-login-window.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-greeter-login-window.c b/gui/simple-greeter/gdm-greeter-login-window.c
index ac00d62..31e599f 100644
--- a/gui/simple-greeter/gdm-greeter-login-window.c
+++ b/gui/simple-greeter/gdm-greeter-login-window.c
@@ -492,6 +492,8 @@ set_log_in_button_mode (GdmGreeterLoginWindow *login_window,
 
         login_window->priv->current_button = button;
 
+        g_list_foreach (login_window->priv->tasks, (GFunc) hide_task_actions, NULL);
+
         switch (mode) {
         case LOGIN_BUTTON_HIDDEN:
                 if (login_window->priv->active_task != NULL) {
@@ -696,6 +698,7 @@ reset_task (GdmTask               *task,
         login_window->priv->tasks_to_enable = g_list_remove (login_window->priv->tasks_to_enable, task);
 
         gdm_task_list_remove_task (GDM_TASK_LIST (login_window->priv->conversation_list), task);
+        hide_task_actions (task);
         gdm_conversation_reset (GDM_CONVERSATION (task));
         return FALSE;
 }



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