[gdm] greeter: don't set list-visible unless the widget is visible



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

    greeter: 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 ebbfdb9..e81bd77 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]