aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets/e-minicard.c
diff options
context:
space:
mode:
authorYu Mengjie <meng-jie.yu@sun.com>2005-04-21 16:47:54 +0800
committerHarry Lu <haip@src.gnome.org>2005-04-21 16:47:54 +0800
commitad916f5a08c464bc846a8c52b323632dfd7576a5 (patch)
tree0855e78b06b566aa22cf1f6b9757d878cf63e619 /addressbook/gui/widgets/e-minicard.c
parent343214625518e3134b5e71061953e32538f2d6ae (diff)
downloadgsoc2013-evolution-ad916f5a08c464bc846a8c52b323632dfd7576a5.tar
gsoc2013-evolution-ad916f5a08c464bc846a8c52b323632dfd7576a5.tar.gz
gsoc2013-evolution-ad916f5a08c464bc846a8c52b323632dfd7576a5.tar.bz2
gsoc2013-evolution-ad916f5a08c464bc846a8c52b323632dfd7576a5.tar.lz
gsoc2013-evolution-ad916f5a08c464bc846a8c52b323632dfd7576a5.tar.xz
gsoc2013-evolution-ad916f5a08c464bc846a8c52b323632dfd7576a5.tar.zst
gsoc2013-evolution-ad916f5a08c464bc846a8c52b323632dfd7576a5.zip
We should incarnate the reflow item if it doesn't exist.
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) svn path=/trunk/; revision=29221
Diffstat (limited to 'addressbook/gui/widgets/e-minicard.c')
-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;
}