diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-05-08 13:22:28 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-05-08 13:22:28 +0800 |
commit | 918cfb0b28bb47ae0ffd3f921e7399aa75b61530 (patch) | |
tree | 0c1a0f41f39da6ac28f551f2d144c9f8b0a0b9e8 /addressbook/gui/minicard/e-minicard-view.c | |
parent | 2d5740212cec3db7df1c993b2446f7e3f11685d0 (diff) | |
download | gsoc2013-evolution-918cfb0b28bb47ae0ffd3f921e7399aa75b61530.tar gsoc2013-evolution-918cfb0b28bb47ae0ffd3f921e7399aa75b61530.tar.gz gsoc2013-evolution-918cfb0b28bb47ae0ffd3f921e7399aa75b61530.tar.bz2 gsoc2013-evolution-918cfb0b28bb47ae0ffd3f921e7399aa75b61530.tar.lz gsoc2013-evolution-918cfb0b28bb47ae0ffd3f921e7399aa75b61530.tar.xz gsoc2013-evolution-918cfb0b28bb47ae0ffd3f921e7399aa75b61530.tar.zst gsoc2013-evolution-918cfb0b28bb47ae0ffd3f921e7399aa75b61530.zip |
Made a minimal number of things be destroyed and recreated when updating a
2000-05-08 Christopher James Lahey <clahey@helixcode.com>
* gui/minicard/e-minicard-view.c, gui/minicard/e-minicard.c,
gui/minicard/e-minicard.h, gui/minicard/e-reflow-sorted.c,
gui/minicard/e-reflow-sorted.h: Made a minimal number of things be
destroyed and recreated when updating a field.
svn path=/trunk/; revision=2904
Diffstat (limited to 'addressbook/gui/minicard/e-minicard-view.c')
-rw-r--r-- | addressbook/gui/minicard/e-minicard-view.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/addressbook/gui/minicard/e-minicard-view.c b/addressbook/gui/minicard/e-minicard-view.c index 812fee47f0..13f3d01f26 100644 --- a/addressbook/gui/minicard/e-minicard-view.c +++ b/addressbook/gui/minicard/e-minicard-view.c @@ -123,11 +123,13 @@ static void modify_card(EBookView *book_view, const GList *cards, EMinicardView *view) { for (; cards; cards = g_list_next(cards)) { - GnomeCanvasItem *item = gnome_canvas_item_new(GNOME_CANVAS_GROUP(view), - e_minicard_get_type(), - "card", cards->data, - NULL); - e_reflow_sorted_replace_item(E_REFLOW_SORTED(view), item); + ECard *card = cards->data; + gchar *id = e_card_get_id(card); + GnomeCanvasItem *item = e_reflow_sorted_get_item(E_REFLOW_SORTED(view), id); + gnome_canvas_item_set(item, + "card", card, + NULL); + e_reflow_sorted_reorder_item(E_REFLOW_SORTED(view), id); } } |