diff options
author | Yu Mengjie <meng-jie.yu@sun.com> | 2005-04-21 16:47:54 +0800 |
---|---|---|
committer | Harry Lu <haip@src.gnome.org> | 2005-04-21 16:47:54 +0800 |
commit | ad916f5a08c464bc846a8c52b323632dfd7576a5 (patch) | |
tree | 0855e78b06b566aa22cf1f6b9757d878cf63e619 /addressbook | |
parent | 343214625518e3134b5e71061953e32538f2d6ae (diff) | |
download | gsoc2013-evolution-ad916f5a08c464bc846a8c52b323632dfd7576a5.tar.gz 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')
-rw-r--r-- | addressbook/ChangeLog | 7 | ||||
-rw-r--r-- | addressbook/gui/widgets/e-minicard.c | 14 |
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; } |