From d7f5b9e1a89ca693a6ab3ecc584b1084833286e0 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 15 Mar 2001 22:48:28 +0000 Subject: Update arguments to e_canvas_item_grab_focus. (eti_cursor_change): Ditto, * e-table-item.c (eti_event): Update arguments to e_canvas_item_grab_focus. (eti_cursor_change): Ditto, but pass FALSE! Fixes the problem of the Evolution message list stealing your focus when new mail arrives. Ha! svn path=/trunk/; revision=8746 --- widgets/table/e-table-item.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'widgets') diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c index 3296287ce7..e4a4126f43 100644 --- a/widgets/table/e-table-item.c +++ b/widgets/table/e-table-item.c @@ -1633,7 +1633,7 @@ eti_event (GnomeCanvasItem *item, GdkEvent *e) switch (e->button.button) { case 1: /* Fall through. */ case 2: - e_canvas_item_grab_focus(GNOME_CANVAS_ITEM(eti)); + e_canvas_item_grab_focus(GNOME_CANVAS_ITEM(eti), TRUE); gnome_canvas_item_w2i (item, &e->button.x, &e->button.y); if (!find_cell (eti, e->button.x, e->button.y, &col, &row, &x1, &y1)) { @@ -1681,7 +1681,7 @@ eti_event (GnomeCanvasItem *item, GdkEvent *e) break; case 3: - e_canvas_item_grab_focus(GNOME_CANVAS_ITEM(eti)); + e_canvas_item_grab_focus(GNOME_CANVAS_ITEM(eti), TRUE); gnome_canvas_item_w2i (item, &e->button.x, &e->button.y); if (!find_cell (eti, e->button.x, e->button.y, &col, &row, &x1, &y1)) return TRUE; @@ -2226,7 +2226,7 @@ eti_cursor_change (ETableSelectionModel *selection, int row, int col, ETableItem eti_request_region_show (eti, view_col, view_row, view_col, view_row, 0); } - e_canvas_item_grab_focus(GNOME_CANVAS_ITEM(eti)); + e_canvas_item_grab_focus(GNOME_CANVAS_ITEM(eti), FALSE); if (eti_editing(eti)) e_table_item_leave_edit (eti); gtk_signal_emit (GTK_OBJECT (eti), eti_signals [CURSOR_CHANGE], -- cgit