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



commit 9fdf58cb6dd87a378f2138ae533e965afd7f812d
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 627a6f9..8772fdd 100644
--- a/gui/simple-greeter/gdm-greeter-login-window.c
+++ b/gui/simple-greeter/gdm-greeter-login-window.c
@@ -495,6 +495,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) {
@@ -702,6 +704,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]