From 18da28dd9a54f883108d1d9ea72d3df605040ca4 Mon Sep 17 00:00:00 2001 From: Jeff Cai Date: Mon, 10 Apr 2006 08:56:09 +0000 Subject: ** Fixes bug #327035 Grab focus only from widgets which can have focus on. 2006-04-10 Jeff Cai ** Fixes bug #327035 * e-table-header-item.c: (ethi_event): Grab focus only from widgets which can have focus on. svn path=/trunk/; revision=31796 --- widgets/table/ChangeLog | 6 ++++++ widgets/table/e-table-header-item.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'widgets/table') diff --git a/widgets/table/ChangeLog b/widgets/table/ChangeLog index 10cf401481..01d6618e07 100644 --- a/widgets/table/ChangeLog +++ b/widgets/table/ChangeLog @@ -1,3 +1,9 @@ +2006-04-10 Jeff Cai + + ** Fixes bug #327035 + * e-table-header-item.c: (ethi_event): + Grab focus only from widgets which can have focus on. + 2006-03-02 Srinivasa Ragavan ** Fixes bug #328283 diff --git a/widgets/table/e-table-header-item.c b/widgets/table/e-table-header-item.c index e43fd9fdf5..7f340f990a 100644 --- a/widgets/table/e-table-header-item.c +++ b/widgets/table/e-table-header-item.c @@ -1678,7 +1678,8 @@ ethi_event (GnomeCanvasItem *item, GdkEvent *e) ethi->maybe_drag = TRUE; is_pointer_on_division (ethi, x, &start, &col); ethi->selected_col = col; - e_canvas_item_grab_focus (item, TRUE); + if (GTK_WIDGET_CAN_FOCUS (GTK_WIDGET (item->canvas))) + e_canvas_item_grab_focus (item, TRUE); } else if (e->button.button == 3){ ethi_header_context_menu (ethi, &e->button); } else -- cgit