aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Leach <jleach@ximian.com>2001-07-11 23:27:40 +0800
committerJacob Leach <jleach@src.gnome.org>2001-07-11 23:27:40 +0800
commit7a42f9e2ebd80207dc217608fe27a7596674b945 (patch)
tree4b7066f03bea0493dc8fa0b9f079a2969440161c
parent45d16d238bd38d089f0b7196108498c10b960142 (diff)
downloadgsoc2013-evolution-7a42f9e2ebd80207dc217608fe27a7596674b945.tar
gsoc2013-evolution-7a42f9e2ebd80207dc217608fe27a7596674b945.tar.gz
gsoc2013-evolution-7a42f9e2ebd80207dc217608fe27a7596674b945.tar.bz2
gsoc2013-evolution-7a42f9e2ebd80207dc217608fe27a7596674b945.tar.lz
gsoc2013-evolution-7a42f9e2ebd80207dc217608fe27a7596674b945.tar.xz
gsoc2013-evolution-7a42f9e2ebd80207dc217608fe27a7596674b945.tar.zst
gsoc2013-evolution-7a42f9e2ebd80207dc217608fe27a7596674b945.zip
Added some comments for clarity and fixed a pretty noticable bug with how
2001-07-11 Jason Leach <jleach@ximian.com> * 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
-rw-r--r--addressbook/ChangeLog7
-rw-r--r--addressbook/gui/component/select-names/e-select-names.c5
2 files changed, 12 insertions, 0 deletions
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 <jleach@ximian.com>
+
+ * 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 <toshok@ximian.com>
* 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