[gdm/multi-stack: 44/46] don't activate invisible tasks



commit cf1bac3351b74cdf639e84fe7545cb04e030ab38
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]