[gdm/multi-stack: 42/46] Don't add task to UI if it's invisible
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm/multi-stack: 42/46] Don't add task to UI if it's invisible
- Date: Fri, 26 Mar 2010 13:37:08 +0000 (UTC)
commit 015bd89a9451abbc3118d6fe0d104347aa34eee3
Author: Ray Strode <rstrode redhat com>
Date: Wed Oct 28 23:55:00 2009 -0400
Don't add task to UI if it's invisible
gui/simple-greeter/gdm-greeter-login-window.c | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-greeter-login-window.c b/gui/simple-greeter/gdm-greeter-login-window.c
index 03858e3..4a3df26 100644
--- a/gui/simple-greeter/gdm-greeter-login-window.c
+++ b/gui/simple-greeter/gdm-greeter-login-window.c
@@ -2113,6 +2113,17 @@ gdm_greeter_login_window_add_extension (GdmGreeterLoginWindow *login_window,
g_object_unref (actions);
+ name = gdm_task_get_name (GDM_TASK (extension));
+ description = gdm_task_get_description (GDM_TASK (extension));
+
+ if (!gdm_task_is_visible (GDM_TASK (extension))) {
+ g_debug ("GdmGreeterLoginWindow: new extension '%s - %s' won't be added",
+ name, description);
+ g_free (name);
+ g_free (description);
+ return;
+ }
+
g_signal_connect_swapped (GDM_CONVERSATION (extension),
"answer",
G_CALLBACK (on_conversation_answer),
@@ -2126,9 +2137,6 @@ gdm_greeter_login_window_add_extension (GdmGreeterLoginWindow *login_window,
G_CALLBACK (on_conversation_chose_user),
login_window);
- name = gdm_task_get_name (GDM_TASK (extension));
- description = gdm_task_get_description (GDM_TASK (extension));
-
g_debug ("GdmGreeterLoginWindow: new extension '%s - %s' added",
name, description);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]