From 9b20ec31fa7fa1a438d124a6909ab2f722ab8a79 Mon Sep 17 00:00:00 2001 From: Chris Lahey Date: Fri, 2 Jun 2000 00:29:48 +0000 Subject: Accidental commit fix. svn path=/trunk/; revision=3354 --- widgets/e-table/e-cell-text.c | 12 +++++++++--- widgets/table/e-cell-text.c | 12 +++++++++--- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/widgets/e-table/e-cell-text.c b/widgets/e-table/e-cell-text.c index d7ef682fde..d2de76f04f 100644 --- a/widgets/e-table/e-cell-text.c +++ b/widgets/e-table/e-cell-text.c @@ -1046,12 +1046,14 @@ ect_height (ECellView *ecell_view, int model_col, int view_col, int row) GdkFont *font; font = text_view->font; +#if 0 if (text_view->filter) { char *string = text_view->filter(e_table_model_value_at (ecell_view->e_table_model, model_col, row)); int value = (font->ascent + font->descent) * number_of_lines(string) + TEXT_PAD; g_free(string); return value; } else +#endif return (font->ascent + font->descent) * number_of_lines(e_table_model_value_at (ecell_view->e_table_model, model_col, row)) + TEXT_PAD; } @@ -1103,12 +1105,16 @@ ect_enter_edit (ECellView *ecell_view, int model_col, int view_col, int row) edit->pointer_in = FALSE; edit->default_cursor_shown = TRUE; +#if 0 if (ect->filter) { str = ect->filter(e_table_model_value_at (ecell_view->e_table_model, model_col, row)); edit->old_text = str; - } else { - edit->old_text = g_strdup (str); - } + } else +#endif + { + str = e_table_model_value_at (ecell_view->e_table_model, model_col, row); + edit->old_text = g_strdup (str); + } edit->cell.text = g_strdup (str); #if 0 diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c index d7ef682fde..d2de76f04f 100644 --- a/widgets/table/e-cell-text.c +++ b/widgets/table/e-cell-text.c @@ -1046,12 +1046,14 @@ ect_height (ECellView *ecell_view, int model_col, int view_col, int row) GdkFont *font; font = text_view->font; +#if 0 if (text_view->filter) { char *string = text_view->filter(e_table_model_value_at (ecell_view->e_table_model, model_col, row)); int value = (font->ascent + font->descent) * number_of_lines(string) + TEXT_PAD; g_free(string); return value; } else +#endif return (font->ascent + font->descent) * number_of_lines(e_table_model_value_at (ecell_view->e_table_model, model_col, row)) + TEXT_PAD; } @@ -1103,12 +1105,16 @@ ect_enter_edit (ECellView *ecell_view, int model_col, int view_col, int row) edit->pointer_in = FALSE; edit->default_cursor_shown = TRUE; +#if 0 if (ect->filter) { str = ect->filter(e_table_model_value_at (ecell_view->e_table_model, model_col, row)); edit->old_text = str; - } else { - edit->old_text = g_strdup (str); - } + } else +#endif + { + str = e_table_model_value_at (ecell_view->e_table_model, model_col, row); + edit->old_text = g_strdup (str); + } edit->cell.text = g_strdup (str); #if 0 -- cgit