From 889cb0a633ffba11d2d71c5403508ed802d8342a Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Tue, 11 Apr 2000 14:27:13 +0000 Subject: Add group indent width here. (is_pointer_on_division): Use the group 2000-04-11 Miguel de Icaza * e-table-header-item.c (ethi_add_destroy_marker): Add group indent width here. (is_pointer_on_division): Use the group indent here, so the resize pointer is shown at the correct time. (TOLERANCE): Bump it up to 3 (draw_button): Do not paint an arrow if there is an icon present, and not enough space to paint. 2000-04-10 Miguel de Icaza * e-table-header-item.c (make_shapped_window_from_xpm): New routine, creates a shapped mask window from an xpm buffer. (ethi_add_drop_marker): New version, uses shaped windows instead of canvas items to signal the drop location. (ethi_maybe_start_drag): Disable dragging if there is only one column left. svn path=/trunk/; revision=2390 --- widgets/table/e-cell-text.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'widgets/table/e-cell-text.c') diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c index 45eec9cb0f..0649392fc6 100644 --- a/widgets/table/e-cell-text.c +++ b/widgets/table/e-cell-text.c @@ -36,7 +36,6 @@ #include #include - /* This defines a line of text */ struct line { @@ -46,7 +45,6 @@ struct line { int ellipsis_length; /* Length before adding ellipsis */ }; - /* Object argument IDs */ enum { @@ -82,8 +80,6 @@ enum { static GdkAtom clipboard_atom = GDK_NONE; - - #define PARENT_TYPE e_cell_get_type () #define TEXT_PAD 4 @@ -1837,8 +1833,6 @@ calc_line_widths (CurrentCell *cell) int i; int j; - - lines = linebreaks->lines; linebreaks->max_width = 0; @@ -1892,11 +1886,14 @@ static void build_current_cell (CurrentCell *cell, ECellTextView *text_view, int model_col, int view_col, int row) { ECellView *ecell_view = (ECellView *) text_view; + cell->text_view = text_view; cell->model_col = model_col; cell->view_col = view_col; cell->row = row; cell->breaks = NULL; cell->text = e_table_model_value_at (ecell_view->e_table_model, model_col, row); - cell->width = e_table_header_get_column (((ETableItem *)ecell_view->e_table_item_view)->header, view_col)->width - 8; + cell->width = e_table_header_get_column ( + ((ETableItem *)ecell_view->e_table_item_view)->header, + view_col)->width - 8; } -- cgit