From ad916f5a08c464bc846a8c52b323632dfd7576a5 Mon Sep 17 00:00:00 2001 From: Yu Mengjie Date: Thu, 21 Apr 2005 08:47:54 +0000 Subject: We should incarnate the reflow item if it doesn't exist. 2005-04-17 Yu Mengjie * gui/widgets/e-minicard.c: (e_minicard_event): We should incarnate the reflow item if it doesn't exist. Fixes #300970 (gnome bugzilla bugID) svn path=/trunk/; revision=29221 --- addressbook/gui/widgets/e-minicard.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'addressbook/gui') 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; } -- cgit v1.2.3