From 7a42f9e2ebd80207dc217608fe27a7596674b945 Mon Sep 17 00:00:00 2001 From: Jason Leach Date: Wed, 11 Jul 2001 15:27:40 +0000 Subject: Added some comments for clarity and fixed a pretty noticable bug with how 2001-07-11 Jason Leach * gui/component/select-names/e-select-names.c (remove_cb): Added some comments for clarity and fixed a pretty noticable bug with how right click "Remove" was deleting more than it should with consecutive runs. svn path=/trunk/; revision=11004 --- addressbook/ChangeLog | 7 +++++++ addressbook/gui/component/select-names/e-select-names.c | 5 +++++ 2 files changed, 12 insertions(+) (limited to 'addressbook') diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 67fe85a26a..4d00f11361 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,10 @@ +2001-07-11 Jason Leach + + * gui/component/select-names/e-select-names.c (remove_cb): Added + some comments for clarity and fixed a pretty noticable bug with + how right click "Remove" was deleting more than it should with + consecutive runs. + 2001-07-10 Chris Toshok * backend/pas/evolutionperson.schema: assign OID's to the schema diff --git a/addressbook/gui/component/select-names/e-select-names.c b/addressbook/gui/component/select-names/e-select-names.c index efa5a13102..1004e510a5 100644 --- a/addressbook/gui/component/select-names/e-select-names.c +++ b/addressbook/gui/component/select-names/e-select-names.c @@ -595,15 +595,20 @@ remove_cb (GtkWidget *widget, void *data) { RightClickData *rcdata = (RightClickData *)data; + /* Build a list of selected rows */ e_table_selected_row_foreach (rcdata->table, etable_selection_foreach_cb, rcdata->child); + /* Now process the list we made, removing each selected row */ g_slist_foreach (selected_rows, (GFunc)selected_rows_foreach_cb, rcdata->child); + /* Free everything we've created */ g_free (rcdata); + g_slist_free (selected_rows); + selected_rows = NULL; } static void -- cgit v1.2.3