summaryrefslogtreecommitdiff
path: root/gui/simple-greeter/gdm-greeter-session.c
diff options
context:
space:
mode:
authorVincent Untz <vuntz@gnome.org>2011-02-03 15:52:49 -0500
committerRay Strode <rstrode@redhat.com>2011-02-03 17:34:47 -0500
commit650465cb691a0eb52a84b0ff3eea64ac82168a43 (patch)
treed8a6465812fb3cbc83830530346a0fd9004923ca /gui/simple-greeter/gdm-greeter-session.c
parent19c44ed273350c6b1aecfd7aa58c051b4bd2b0ab (diff)
downloadgdm-650465cb691a0eb52a84b0ff3eea64ac82168a43.tar.gz
greeter: inform daemon when user disconnects
This is so the daemon knows the user is intentionally disconnecting and it's not just the greeter tanking.
Diffstat (limited to 'gui/simple-greeter/gdm-greeter-session.c')
-rw-r--r--gui/simple-greeter/gdm-greeter-session.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gui/simple-greeter/gdm-greeter-session.c b/gui/simple-greeter/gdm-greeter-session.c
index 32251058..3d2a0674 100644
--- a/gui/simple-greeter/gdm-greeter-session.c
+++ b/gui/simple-greeter/gdm-greeter-session.c
@@ -271,8 +271,7 @@ on_cancelled (GdmGreeterLoginWindow *login_window,
}
static void
-on_disconnected (GdmGreeterLoginWindow *login_window,
- GdmGreeterSession *session)
+on_disconnected (GdmGreeterSession *session)
{
gdm_greeter_client_call_disconnect (session->priv->client);
}
@@ -350,6 +349,11 @@ toggle_panel (GdmGreeterSession *session,
G_CALLBACK (on_select_session),
session);
+ g_signal_connect_swapped (session->priv->panel,
+ "disconnected",
+ G_CALLBACK (on_disconnected),
+ session);
+
gtk_widget_show (session->priv->panel);
} else {
gtk_widget_destroy (session->priv->panel);
@@ -397,10 +401,6 @@ toggle_login_window (GdmGreeterSession *session,
G_CALLBACK (on_cancelled),
session);
g_signal_connect (session->priv->login_window,
- "disconnected",
- G_CALLBACK (on_disconnected),
- session);
- g_signal_connect (session->priv->login_window,
"start-session",
G_CALLBACK (on_start_session),
session);