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



commit fbf8627abdc2f83a1295ac8a6efd8bb295ed1e78
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..5a078e8 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_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]