diff options
Diffstat (limited to 'addressbook/gui')
-rw-r--r-- | addressbook/gui/component/select-names/e-select-names.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/addressbook/gui/component/select-names/e-select-names.c b/addressbook/gui/component/select-names/e-select-names.c index eda6dbd301..5d76f00689 100644 --- a/addressbook/gui/component/select-names/e-select-names.c +++ b/addressbook/gui/component/select-names/e-select-names.c @@ -698,6 +698,7 @@ button_clicked(GtkWidget *button, ESelectNamesChild *child) static void remove_address(ETable *table, int row, int col, GdkEvent *event, ESelectNamesChild *child) { + g_message ("remove row %d", row); e_select_names_model_delete (child->source, row); } @@ -732,6 +733,8 @@ remove_cb (GtkWidget *widget, void *data) { RightClickData *rcdata = (RightClickData *)data; + e_select_names_model_freeze (rcdata->child->source); + /* Build a list of selected rows */ e_table_selected_row_foreach (rcdata->table, etable_selection_foreach_cb, @@ -742,6 +745,8 @@ remove_cb (GtkWidget *widget, void *data) (GFunc)selected_rows_foreach_cb, rcdata->child); + e_select_names_model_thaw (rcdata->child->source); + /* Free everything we've created */ g_free (rcdata); g_slist_free (selected_rows); |