From 2f949ea127c577aa900748f39fa1e7115a9ecb4d Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Wed, 15 Jan 2003 18:28:23 +0000 Subject: add call to e_table_model_pre_change here to reduce spew. 2003-01-15 Chris Toshok * gal/e-text/e-completion-view.c (begin_completion_cb): add call to e_table_model_pre_change here to reduce spew. (cancel_completion_cb): same. (completion_cb): same. (end_completion_cb): same. (clear_completion_cb): same. (lost_completion_cb): same. svn path=/trunk/; revision=19478 --- widgets/text/e-completion-view.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'widgets/text') diff --git a/widgets/text/e-completion-view.c b/widgets/text/e-completion-view.c index bff80d023f..cfee21aae9 100644 --- a/widgets/text/e-completion-view.c +++ b/widgets/text/e-completion-view.c @@ -586,6 +586,7 @@ begin_completion_cb (ECompletion *completion, const gchar *txt, gint pos, gint l { ECompletionView *cv = E_COMPLETION_VIEW (user_data); + e_table_model_pre_change (cv->model); e_completion_view_clear_choices (cv); cv->have_all_choices = FALSE; @@ -605,6 +606,7 @@ cancel_completion_cb (ECompletion *completion, gpointer user_data) ECompletionView *cv = E_COMPLETION_VIEW (user_data); /* On a cancel, clear our choices and issue an "unbrowse" signal. */ + e_table_model_pre_change (cv->model); e_completion_view_clear_choices (cv); cv->have_all_choices = TRUE; e_completion_view_set_cursor_row (cv, -1); @@ -620,6 +622,8 @@ completion_cb (ECompletion *completion, ECompletionMatch *match, gpointer user_d gint r = cv->choices->len; gboolean first = (cv->choices->len == 0); + e_table_model_pre_change (cv->model); + e_completion_match_ref (match); g_ptr_array_add (cv->choices, match); @@ -637,6 +641,7 @@ end_completion_cb (ECompletion *completion, gpointer user_data) ECompletionView *cv = E_COMPLETION_VIEW (user_data); /* Do a final refresh of the table. */ + e_table_model_pre_change (cv->model); e_table_model_changed (cv->model); cv->have_all_choices = TRUE; @@ -648,6 +653,7 @@ clear_completion_cb (ECompletion *completion, gpointer user_data) { ECompletionView *cv = E_COMPLETION_VIEW (user_data); + e_table_model_pre_change (cv->model); e_completion_view_clear_choices (cv); cv->have_all_choices = FALSE; @@ -669,6 +675,7 @@ lost_completion_cb (ECompletion *completion, ECompletionMatch *match, gpointer u /* FIXME: do remove_index_fast(), then row_changed and * row_deleted (if there are more than 1 row still) */ + e_table_model_pre_change (cv->model); g_ptr_array_remove_index (c, i); e_table_model_row_deleted (cv->model, i); -- cgit v1.2.3