[gdm/multi-stack] Drop the other hiding stuff for now.



commit 2fc0fa6e983596d85183d27b400f84bac366f42c
Author: Ray Strode <rstrode redhat com>
Date:   Fri Oct 23 17:39:19 2009 -0400

    Drop the other hiding stuff for now.
    
    It depends on buttons being available that we don't have
    in the multi-stack branch.

 gui/simple-greeter/gdm-user-chooser-widget.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-user-chooser-widget.c b/gui/simple-greeter/gdm-user-chooser-widget.c
index 75cf7ed..de516c2 100644
--- a/gui/simple-greeter/gdm-user-chooser-widget.c
+++ b/gui/simple-greeter/gdm-user-chooser-widget.c
@@ -140,13 +140,7 @@ update_other_user_visibility (GdmUserChooserWidget *widget)
                 return;
         }
 
-        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) {
+        if (!widget->priv->has_user_other) {
                 add_user_other (widget);
         }
 }



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