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



commit 5eb1e0e96d337484c3e6546ed12af4c9eb7487cf
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 db2d9b2..ed2c3cc 100644
--- a/gui/simple-greeter/gdm-chooser-widget.c
+++ b/gui/simple-greeter/gdm-chooser-widget.c
@@ -699,7 +699,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_get_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]