[evolution/gnome-3-8] EaMinicardView: Create a minicard object, if not present in a list



commit b7a30fe819d42266e791c0a919ac75acf6c32acf
Author: Milan Crha <mcrha redhat com>
Date:   Wed Jul 10 13:49:26 2013 +0200

    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 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 67f112e..0362b3c 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 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]