[gdm] Always show “other…” choice



commit c231e254a842fd44e03cb34a4769cfc1b813e17e
Author: Josselin Mouette <joss malsain org>
Date:   Wed Sep 15 14:30:15 2010 -0400

    Always show â??otherâ?¦â?? choice
    
    When the system is configured to use NIS or LDAP, with no local
    user, no user shows up in the chooser. In this case, there is
    specific code that makes the â??otherâ?¦â?? choice disappear. I canâ??t
    think of any case where it would be useful, and in this case it
    makes logging in entirely impossible.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=624467

 gui/simple-greeter/gdm-user-chooser-widget.c |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-user-chooser-widget.c b/gui/simple-greeter/gdm-user-chooser-widget.c
index 4a79c58..19a7922 100644
--- a/gui/simple-greeter/gdm-user-chooser-widget.c
+++ b/gui/simple-greeter/gdm-user-chooser-widget.c
@@ -150,13 +150,8 @@ update_other_user_visibility (GdmUserChooserWidget *widget)
                 goto out;
         }
 
-        number_of_users = gdm_chooser_widget_get_number_of_items (GDM_CHOOSER_WIDGET (widget));
-
-        /* we hide the Other user if it's the last one, and we show it
-         * if there's another user */
-        if (number_of_users == 1 && widget->priv->has_user_other) {
-                remove_user_other (widget);
-        } if (number_of_users >= 1 && !widget->priv->has_user_other) {
+        /* Always show the Other user if requested */
+        if (!widget->priv->has_user_other) {
                 add_user_other (widget);
         }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]