diff options
author | Ray Strode <rstrode@redhat.com> | 2012-07-17 02:18:39 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2012-07-17 03:38:10 -0400 |
commit | 2b55fed06ebdaa16f13f957785080f409486c911 (patch) | |
tree | 787ede43cfedc3ffddb0f9b9e794a89c7737b3ea /gui | |
parent | 8b359b6a154ff1125641324bca87b022de8dc0ca (diff) | |
download | gdm-2b55fed06ebdaa16f13f957785080f409486c911.tar.gz |
simple-greeter: only hide Other item if we can skip it
Normally if "Other" is the only thing we'll show, we forgo it
and jump straight to the password prompt.
There is a bug, though, if multiple authentication methods are
enabled. In that case, we hide the user chooser, but don't jump
to the Password prompt.
This commit makes sure we show the user chooser / Other in that case.
Diffstat (limited to 'gui')
-rw-r--r-- | gui/simple-greeter/gdm-greeter-login-window.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/simple-greeter/gdm-greeter-login-window.c b/gui/simple-greeter/gdm-greeter-login-window.c index eeb36cbd..4ca83c75 100644 --- a/gui/simple-greeter/gdm-greeter-login-window.c +++ b/gui/simple-greeter/gdm-greeter-login-window.c @@ -1433,9 +1433,7 @@ on_users_loaded (GdmUserChooserWidget *user_chooser, update_banner_message (login_window); - if (!login_window->priv->user_list_disabled) { - gtk_widget_show (login_window->priv->user_chooser); - } + gtk_widget_show (login_window->priv->user_chooser); enable_waiting_extensions (login_window); @@ -1444,6 +1442,8 @@ on_users_loaded (GdmUserChooserWidget *user_chooser, request_timed_login (login_window); } else if (can_jump_to_authenticate (login_window)) { + gtk_widget_hide (login_window->priv->user_chooser); + /* jump straight to authenticate */ g_debug ("GdmGreeterLoginWindow: jumping straight to authenticate"); g_signal_emit (G_OBJECT (login_window), signals[USER_SELECTED], |