summaryrefslogtreecommitdiff
path: root/gui/simple-greeter/gdm-greeter-session.c
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2011-02-17 11:09:10 -0500
committerRay Strode <rstrode@redhat.com>2011-02-17 11:54:06 -0500
commit11139d9e693ecb1e5dcf6b538f0873a3e97730c8 (patch)
treec9415103500521a86968100f828e328a2aaa1639 /gui/simple-greeter/gdm-greeter-session.c
parent4ce71233e6f5f2990ae17cd9d7aec1c4b2224887 (diff)
downloadgdm-11139d9e693ecb1e5dcf6b538f0873a3e97730c8.tar.gz
greeter: add session chooser to dialog
Since we don't have it in the panel anymore, put it in the dialog.
Diffstat (limited to 'gui/simple-greeter/gdm-greeter-session.c')
-rw-r--r--gui/simple-greeter/gdm-greeter-session.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/gui/simple-greeter/gdm-greeter-session.c b/gui/simple-greeter/gdm-greeter-session.c
index 14f518e1..7be5acd7 100644
--- a/gui/simple-greeter/gdm-greeter-session.c
+++ b/gui/simple-greeter/gdm-greeter-session.c
@@ -163,6 +163,7 @@ on_default_session_name_changed (GdmGreeterClient *client,
GdmGreeterSession *session)
{
g_debug ("GdmGreeterSession: default session name changed: %s", text);
+ gdm_greeter_login_window_set_default_session_name (GDM_GREETER_LOGIN_WINDOW (session->priv->login_window), text);
}
static void
@@ -238,8 +239,9 @@ on_query_answer (GdmGreeterLoginWindow *login_window,
}
static void
-on_select_session (GdmGreeterSession *session,
- const char *text)
+on_select_session (GdmGreeterLoginWindow *login_window,
+ const char *text,
+ GdmGreeterSession *session)
{
gdm_greeter_client_call_select_session (session->priv->client,
text);
@@ -387,6 +389,10 @@ toggle_login_window (GdmGreeterSession *session,
G_CALLBACK (on_select_user),
session);
g_signal_connect (session->priv->login_window,
+ "session-selected",
+ G_CALLBACK (on_select_session),
+ session);
+ g_signal_connect (session->priv->login_window,
"cancelled",
G_CALLBACK (on_cancelled),
session);