diff options
author | Milan Crha <mcrha@redhat.com> | 2013-07-10 19:49:26 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2013-07-10 19:51:15 +0800 |
commit | b7a30fe819d42266e791c0a919ac75acf6c32acf (patch) | |
tree | baa42ed865d53bdc3172da851a6a651f91ab56e2 /addressbook/gui | |
parent | e0cbe2dd9221539ddd93ab68fa3f8ea327664447 (diff) | |
download | gsoc2013-evolution-b7a30fe819d42266e791c0a919ac75acf6c32acf.tar gsoc2013-evolution-b7a30fe819d42266e791c0a919ac75acf6c32acf.tar.gz gsoc2013-evolution-b7a30fe819d42266e791c0a919ac75acf6c32acf.tar.bz2 gsoc2013-evolution-b7a30fe819d42266e791c0a919ac75acf6c32acf.tar.lz gsoc2013-evolution-b7a30fe819d42266e791c0a919ac75acf6c32acf.tar.xz gsoc2013-evolution-b7a30fe819d42266e791c0a919ac75acf6c32acf.tar.zst gsoc2013-evolution-b7a30fe819d42266e791c0a919ac75acf6c32acf.zip |
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.
Diffstat (limited to 'addressbook/gui')
-rw-r--r-- | addressbook/gui/widgets/ea-minicard-view.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 { |