aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
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
parent78a7684cdb308177314c53d504a52decc12feb57 (diff)
downloadgsoc2013-evolution-18da28dd9a54f883108d1d9ea72d3df605040ca4.tar.gz
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')
-rw-r--r--widgets/table/ChangeLog6
-rw-r--r--widgets/table/e-table-header-item.c3
2 files changed, 8 insertions, 1 deletions
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 <jeff.cai@sun.com>
+
+ ** 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 <sragavan@novell.com>
** 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