[gdm/multi-stack: 1/25] Don't set list-visible unless the widget is visible



commit 3599108bbaf5175643607515332f280723c50f2a
Author: Ray Strode <rstrode redhat com>
Date:   Wed Jul 7 17:16:38 2010 -0400

    Don't set list-visible unless the widget is visible
    
    list-visible is a special property that means the
    list part of the chooser widget is visible.  We need
    to make sure we only report it visible when the
    chooser itself is visible otherwise the property is
    a lie.
    
    This fixes focus handling when the conversation list
    isn't visible to begin with.

 gui/simple-greeter/gdm-chooser-widget.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-chooser-widget.c b/gui/simple-greeter/gdm-chooser-widget.c
index fd97cdb..dbd1ee6 100644
--- a/gui/simple-greeter/gdm-chooser-widget.c
+++ b/gui/simple-greeter/gdm-chooser-widget.c
@@ -698,7 +698,7 @@ update_chooser_visibility (GdmChooserWidget *widget)
 
         if (gdm_chooser_widget_get_number_of_items (widget) > 0) {
                 gtk_widget_show (widget->priv->frame);
-                set_chooser_list_visible (widget, TRUE);
+                set_chooser_list_visible (widget, GTK_WIDGET_VISIBLE (widget));
         } else {
                 gtk_widget_hide (widget->priv->frame);
                 set_chooser_list_visible (widget, FALSE);



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