[gdm] Fire off loading user images after chooser is mapped
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] Fire off loading user images after chooser is mapped
- Date: Tue, 31 Aug 2010 18:28:34 +0000 (UTC)
commit 0df669070bfa550af9830deb0c17273529743970
Author: Ray Strode <rstrode redhat com>
Date: Tue Aug 31 13:36:20 2010 -0400
Fire off loading user images after chooser is mapped
The update_visible_items function calls gtk_tree_view_get_visible_range
which seems to only work after the tree view is mapped.
This commit makes sure that we queue an update after the widget is
mapped.
(seems to a fix a problem where users face icons don't always show up)
gui/simple-greeter/gdm-chooser-widget.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-chooser-widget.c b/gui/simple-greeter/gdm-chooser-widget.c
index 9e3ae73..043928d 100644
--- a/gui/simple-greeter/gdm-chooser-widget.c
+++ b/gui/simple-greeter/gdm-chooser-widget.c
@@ -1362,6 +1362,14 @@ gdm_chooser_widget_show (GtkWidget *widget)
}
static void
+gdm_chooser_widget_map (GtkWidget *widget)
+{
+ queue_update_visible_items (GDM_CHOOSER_WIDGET (widget));
+
+ GTK_WIDGET_CLASS (gdm_chooser_widget_parent_class)->map (widget);
+}
+
+static void
gdm_chooser_widget_size_allocate (GtkWidget *widget,
GtkAllocation *allocation)
{
@@ -1420,6 +1428,7 @@ gdm_chooser_widget_class_init (GdmChooserWidgetClass *klass)
widget_class->size_allocate = gdm_chooser_widget_size_allocate;
widget_class->hide = gdm_chooser_widget_hide;
widget_class->show = gdm_chooser_widget_show;
+ widget_class->map = gdm_chooser_widget_map;
widget_class->focus = gdm_chooser_widget_focus;
widget_class->focus_in_event = gdm_chooser_widget_focus_in_event;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]