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:49:26 +0800 |
commit | 7d7a00b92c2dddb767ef79bca6e805c2e9074016 (patch) | |
tree | 324ff42112e8bc9949fe339fde4df3a2979673c2 /addressbook/gui | |
parent | a87a779e0b64032cceecaa4593c8c08b5fbad203 (diff) | |
download | gsoc2013-evolution-7d7a00b92c2dddb767ef79bca6e805c2e9074016.tar gsoc2013-evolution-7d7a00b92c2dddb767ef79bca6e805c2e9074016.tar.gz gsoc2013-evolution-7d7a00b92c2dddb767ef79bca6e805c2e9074016.tar.bz2 gsoc2013-evolution-7d7a00b92c2dddb767ef79bca6e805c2e9074016.tar.lz gsoc2013-evolution-7d7a00b92c2dddb767ef79bca6e805c2e9074016.tar.xz gsoc2013-evolution-7d7a00b92c2dddb767ef79bca6e805c2e9074016.tar.zst gsoc2013-evolution-7d7a00b92c2dddb767ef79bca6e805c2e9074016.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 { |