aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table/e-table-group-leaf.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-06-02 10:57:39 +0800
committerChris Lahey <clahey@src.gnome.org>2000-06-02 10:57:39 +0800
commitf9b79bb0f6f9f372539af46e26c93c1669762c79 (patch)
tree4c2bec08f2921cbfba3d079034820c17c201579c /widgets/e-table/e-table-group-leaf.c
parentdf398954171eb8e1acdeb9c890583521821f2984 (diff)
downloadgsoc2013-evolution-f9b79bb0f6f9f372539af46e26c93c1669762c79.tar
gsoc2013-evolution-f9b79bb0f6f9f372539af46e26c93c1669762c79.tar.gz
gsoc2013-evolution-f9b79bb0f6f9f372539af46e26c93c1669762c79.tar.bz2
gsoc2013-evolution-f9b79bb0f6f9f372539af46e26c93c1669762c79.tar.lz
gsoc2013-evolution-f9b79bb0f6f9f372539af46e26c93c1669762c79.tar.xz
gsoc2013-evolution-f9b79bb0f6f9f372539af46e26c93c1669762c79.tar.zst
gsoc2013-evolution-f9b79bb0f6f9f372539af46e26c93c1669762c79.zip
Added a "key_press" signal.
2000-06-01 Christopher James Lahey <clahey@helixcode.com> * e-table-group-container.c, e-table-group-leaf.c, e-table-group.c, e-table-group.h, e-table-item.c, e-table-item.h, e-table.c, e-table.h: Added a "key_press" signal. svn path=/trunk/; revision=3366
Diffstat (limited to 'widgets/e-table/e-table-group-leaf.c')
-rw-r--r--widgets/e-table/e-table-group-leaf.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/widgets/e-table/e-table-group-leaf.c b/widgets/e-table/e-table-group-leaf.c
index 29273c4f73..dcf9c280c4 100644
--- a/widgets/e-table/e-table-group-leaf.c
+++ b/widgets/e-table/e-table-group-leaf.c
@@ -104,6 +104,15 @@ etgl_double_click (GtkObject *object, gint row, ETableGroupLeaf *etgl)
e_table_group_double_click (E_TABLE_GROUP(etgl), E_TABLE_SUBSET(etgl->subset)->map_table[row]);
}
+static gint
+etgl_key_press (GtkObject *object, gint row, gint col, GdkEvent *event, ETableGroupLeaf *etgl)
+{
+ if (row < E_TABLE_SUBSET(etgl->subset)->n_map)
+ return e_table_group_key_press (E_TABLE_GROUP(etgl), E_TABLE_SUBSET(etgl->subset)->map_table[row], col, event);
+ else
+ return 0;
+}
+
static void
etgl_reflow (GnomeCanvasItem *item, gint flags)
{
@@ -142,6 +151,8 @@ etgl_realize (GnomeCanvasItem *item)
GTK_SIGNAL_FUNC(etgl_cursor_change), etgl);
gtk_signal_connect (GTK_OBJECT(etgl->item), "double_click",
GTK_SIGNAL_FUNC(etgl_double_click), etgl);
+ gtk_signal_connect (GTK_OBJECT(etgl->item), "key_press",
+ GTK_SIGNAL_FUNC(etgl_key_press), etgl);
e_canvas_item_request_reflow(item);
}