From 4bb33b390b3fc556abacb345b977cd20146d6ae7 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Thu, 5 Jul 2001 14:50:57 +0000 Subject: Call e_table_item_leave_edit here. 2001-07-05 Christopher James Lahey * e-cell-text.c (ect_cancel_edit): Call e_table_item_leave_edit here. svn path=/trunk/; revision=10805 --- widgets/table/e-cell-text.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'widgets/table') diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c index 717c4d8abc..8fcfd35173 100644 --- a/widgets/table/e-cell-text.c +++ b/widgets/table/e-cell-text.c @@ -36,6 +36,7 @@ #include #include #include +#include #include #include #include "e-cell-text.h" @@ -312,6 +313,7 @@ static void ect_cancel_edit (ECellTextView *text_view) { ect_stop_editing (text_view); + e_table_item_leave_edit (text_view->cell_view.e_table_item_view); } /* @@ -1204,6 +1206,8 @@ ect_show_tooltip (ECellView *ecell_view, canvas = e_canvas_new (); gtk_container_add (GTK_CONTAINER (window), canvas); + GTK_WIDGET_UNSET_FLAGS (canvas, GTK_CAN_FOCUS); + GTK_WIDGET_UNSET_FLAGS (window, GTK_CAN_FOCUS); max_width = 0.0; for (lines = cell.breaks->lines, i = 0; i < cell.breaks->num_lines; -- cgit