[gdm/multi-stack: 48/50] don't activate invisible tasks



commit cf005789c45da97b92e28f45e0ac94ca4cc941fb
Author: Ray Strode <rstrode redhat com>
Date:   Thu Oct 29 00:10:40 2009 -0400

    don't activate invisible tasks

 gui/simple-greeter/gdm-task-list.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-task-list.c b/gui/simple-greeter/gdm-task-list.c
index dd77ed6..c9d7451 100644
--- a/gui/simple-greeter/gdm-task-list.c
+++ b/gui/simple-greeter/gdm-task-list.c
@@ -335,6 +335,10 @@ gdm_task_list_set_active_task (GdmTaskList *widget,
         gboolean   was_sensitive;
         gboolean   was_activated;
 
+        if (!gdm_task_is_visible (task)) {
+                return FALSE;
+        }
+
         was_sensitive = GTK_WIDGET_SENSITIVE (widget);
         gtk_widget_set_sensitive (GTK_WIDGET (widget), TRUE);
 



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