aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-header-item.c
diff options
context:
space:
mode:
authorJeff Cai <jeff.cai@sun.com>2006-04-10 16:56:09 +0800
committerSimon Zheng <simonz@src.gnome.org>2006-04-10 16:56:09 +0800
commit18da28dd9a54f883108d1d9ea72d3df605040ca4 (patch)
tree460ec3ba730d44753dd5e2db0f94fce3658f1235 /widgets/table/e-table-header-item.c
parent78a7684cdb308177314c53d504a52decc12feb57 (diff)
downloadgsoc2013-evolution-18da28dd9a54f883108d1d9ea72d3df605040ca4.tar
gsoc2013-evolution-18da28dd9a54f883108d1d9ea72d3df605040ca4.tar.gz
gsoc2013-evolution-18da28dd9a54f883108d1d9ea72d3df605040ca4.tar.bz2
gsoc2013-evolution-18da28dd9a54f883108d1d9ea72d3df605040ca4.tar.lz
gsoc2013-evolution-18da28dd9a54f883108d1d9ea72d3df605040ca4.tar.xz
gsoc2013-evolution-18da28dd9a54f883108d1d9ea72d3df605040ca4.tar.zst
gsoc2013-evolution-18da28dd9a54f883108d1d9ea72d3df605040ca4.zip
** Fixes bug #327035 Grab focus only from widgets which can have focus on.
2006-04-10 Jeff Cai <jeff.cai@sun.com> ** 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
Diffstat (limited to 'widgets/table/e-table-header-item.c')
-rw-r--r--widgets/table/e-table-header-item.c3
1 files changed, 2 insertions, 1 deletions
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