From 6e4ae07fbfce5845d48e8ba1992f64376a885ac4 Mon Sep 17 00:00:00 2001 From: Iain Holmes Date: Fri, 15 Sep 2000 21:42:38 +0000 Subject: If the cursor is inside the subcell, call the show_tooltip on it. 2000-09-15 Iain Holmes * e-cell-tree.c (ect_show_tooltip): If the cursor is inside the subcell, call the show_tooltip on it. * e-table-header-item.c (draw_button): Draw the arrow first, then take it's size into account when calculating how to draw the text. Use ellipsis if the text it too long. 2000-09-15 Iain Holmes * e-table-header-item.c (draw_button): Fix a crash by passing the canvas widget to gtk_paint_box. Reported by Radek. 2000-09-14 Iain Holmes * e-table-header-item.c (set_cursor): The column isn't resizable if it is the last, or if all other columns after it are not resizable. * e-cell-text.c (ect_max_width): Correctly calculate the width of the line of text. Unbuild the current cell and unref the lines as well. (build_current_cell): Initialize cell->style to 0; 2000-09-14 Iain Holmes * e-table-item.c: Start timers for the tooltip to appear, on motion events. * e-cell.[ch]: Add a new show_tooltip method. * e-cell-text.c (ect_show_tooltip): Show the tooltip. svn path=/trunk/; revision=5466 --- widgets/e-table/e-cell.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'widgets/e-table/e-cell.c') diff --git a/widgets/e-table/e-cell.c b/widgets/e-table/e-cell.c index ddab43dbd6..f5d2abf733 100644 --- a/widgets/e-table/e-cell.c +++ b/widgets/e-table/e-cell.c @@ -89,6 +89,12 @@ ec_leave_edit (ECellView *ecell_view, int model_col, int view_col, int row, void { } +static void +ec_show_tooltip (ECellView *ecell_view, int model_col, int view_col, int row, ETableTooltip *tooltip) +{ + /* Do nothing */ +} + static void e_cell_class_init (GtkObjectClass *object_class) { @@ -107,6 +113,8 @@ e_cell_class_init (GtkObjectClass *object_class) ecc->leave_edit = ec_leave_edit; ecc->print = NULL; ecc->print_height = NULL; + ecc->max_width = NULL; + ecc->show_tooltip = ec_show_tooltip; } static void @@ -206,3 +214,10 @@ e_cell_max_width (ECellView *ecell_view, int model_col, int view_col) (ecell_view, model_col, view_col); } +void +e_cell_show_tooltip (ECellView *ecell_view, int model_col, int view_col, + int row, ETableTooltip *tooltip) +{ + return E_CELL_CLASS (GTK_OBJECT (ecell_view->ecell)->klass)->show_tooltip + (ecell_view, model_col, view_col, row, tooltip); +} -- cgit v1.2.3