From 7d7a00b92c2dddb767ef79bca6e805c2e9074016 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 10 Jul 2013 13:49:26 +0200 Subject: EaMinicardView: Create a minicard object, if not present in a list The list of minicards in reflow is populated on demand, and this was a place where the demand was not satisfied, if it was missing. --- addressbook/gui/widgets/ea-minicard-view.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'addressbook/gui') diff --git a/addressbook/gui/widgets/ea-minicard-view.c b/addressbook/gui/widgets/ea-minicard-view.c index 67f112e66a..0362b3cf91 100644 --- a/addressbook/gui/widgets/ea-minicard-view.c +++ b/addressbook/gui/widgets/ea-minicard-view.c @@ -271,6 +271,12 @@ ea_minicard_view_ref_child (AtkObject *accessible, return NULL; /* a minicard */ if (index < child_num) { + if (reflow->items[index] == NULL) { + reflow->items[index] = e_reflow_model_incarnate (reflow->model, index, GNOME_CANVAS_GROUP (reflow)); + g_object_set (reflow->items[index], + "width", (double) reflow->column_width, + NULL); + } card = E_MINICARD (reflow->items[index]); atk_object = atk_gobject_accessible_for_object (G_OBJECT (card)); } else { -- cgit v1.2.3