aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui/widgets')
-rw-r--r--addressbook/gui/widgets/e-minicard.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/addressbook/gui/widgets/e-minicard.c b/addressbook/gui/widgets/e-minicard.c
index 2e0579c24d..f687509a79 100644
--- a/addressbook/gui/widgets/e-minicard.c
+++ b/addressbook/gui/widgets/e-minicard.c
@@ -682,6 +682,13 @@ e_minicard_event (GnomeCanvasItem *item, GdkEvent *event)
view_index--;
model_index = e_sorter_sorted_to_model (E_SORTER (reflow->sorter), view_index);
+ if (reflow->items[model_index] == NULL) {
+ reflow->items[model_index] = e_reflow_model_incarnate (reflow->model, model_index, GNOME_CANVAS_GROUP (reflow));
+ g_object_set (reflow->items[model_index],
+ "width", (double) reflow->column_width,
+ NULL);
+
+ }
e_canvas_item_grab_focus (reflow->items[model_index], FALSE);
return TRUE;
}
@@ -701,6 +708,13 @@ e_minicard_event (GnomeCanvasItem *item, GdkEvent *event)
view_index++;
model_index = e_sorter_sorted_to_model (E_SORTER (reflow->sorter), view_index);
+ if (reflow->items[model_index] == NULL) {
+ reflow->items[model_index] = e_reflow_model_incarnate (reflow->model, model_index, GNOME_CANVAS_GROUP (reflow));
+ g_object_set (reflow->items[model_index],
+ "width", (double) reflow->column_width,
+ NULL);
+
+ }
e_canvas_item_grab_focus(reflow->items[model_index], FALSE);
return TRUE;
}