aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-item.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-07-30 04:06:54 +0800
committerChris Lahey <clahey@src.gnome.org>2000-07-30 04:06:54 +0800
commit08f83c6fcf6fb24a12553efa2410d6f389ee7911 (patch)
tree6ea1d4e6cccced365d6eeb1eb55a8051d58ad4c2 /widgets/table/e-table-item.c
parent99fde85896e0370f4020c2e91ec47f375dcb8c7b (diff)
downloadgsoc2013-evolution-08f83c6fcf6fb24a12553efa2410d6f389ee7911.tar
gsoc2013-evolution-08f83c6fcf6fb24a12553efa2410d6f389ee7911.tar.gz
gsoc2013-evolution-08f83c6fcf6fb24a12553efa2410d6f389ee7911.tar.bz2
gsoc2013-evolution-08f83c6fcf6fb24a12553efa2410d6f389ee7911.tar.lz
gsoc2013-evolution-08f83c6fcf6fb24a12553efa2410d6f389ee7911.tar.xz
gsoc2013-evolution-08f83c6fcf6fb24a12553efa2410d6f389ee7911.tar.zst
gsoc2013-evolution-08f83c6fcf6fb24a12553efa2410d6f389ee7911.zip
Made enter key destroy and recreate the ETableItem.
2000-07-29 Christopher James Lahey <clahey@helixcode.com> * e-table-click-to-add.c: Made enter key destroy and recreate the ETableItem. * e-table-item.c: Grab focus when person clicks even if cursor isn't changing. svn path=/trunk/; revision=4416
Diffstat (limited to 'widgets/table/e-table-item.c')
-rw-r--r--widgets/table/e-table-item.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c
index a1afb2c3be..4eac94ed41 100644
--- a/widgets/table/e-table-item.c
+++ b/widgets/table/e-table-item.c
@@ -1361,6 +1361,8 @@ eti_event (GnomeCanvasItem *item, GdkEvent *e)
gint ctrled = e->button.state & GDK_CONTROL_MASK;
gint cursor_row, cursor_col;
+ e_canvas_item_grab_focus(GNOME_CANVAS_ITEM(eti));
+
switch (e->button.button) {
case 1: /* Fall through. */
case 2: