aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog7
-rw-r--r--addressbook/gui/widgets/e-minicard.c14
2 files changed, 21 insertions, 0 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index bfc3209e82..3cdd9febad 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,10 @@
+2005-04-17 Yu Mengjie <meng-jie.yu@sun.com>
+
+ * gui/widgets/e-minicard.c: (e_minicard_event):
+ We should incarnate the reflow item if it doesn't exist.
+
+ Fixes #300970 (gnome bugzilla bugID)
+
2005-04-04 Sivaiah Nallagatla <snallagatla@novell.com>
* gui/component/addressbook.c (load_source_auth_cb)
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;
}