aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table/e-table-group-leaf.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-08-25 05:13:17 +0800
committerChris Lahey <clahey@src.gnome.org>2000-08-25 05:13:17 +0800
commit5e1949f93523c93bd8a1384e2c71a12e0717219d (patch)
tree7731a10fafe498700b4d95841cef912aa16d8762 /widgets/e-table/e-table-group-leaf.c
parent3877d4077d333964b165d45e3e400a2b5ea1296f (diff)
downloadgsoc2013-evolution-5e1949f93523c93bd8a1384e2c71a12e0717219d.tar
gsoc2013-evolution-5e1949f93523c93bd8a1384e2c71a12e0717219d.tar.gz
gsoc2013-evolution-5e1949f93523c93bd8a1384e2c71a12e0717219d.tar.bz2
gsoc2013-evolution-5e1949f93523c93bd8a1384e2c71a12e0717219d.tar.lz
gsoc2013-evolution-5e1949f93523c93bd8a1384e2c71a12e0717219d.tar.xz
gsoc2013-evolution-5e1949f93523c93bd8a1384e2c71a12e0717219d.tar.zst
gsoc2013-evolution-5e1949f93523c93bd8a1384e2c71a12e0717219d.zip
Added a click signal which gets sent if the user hits the left or middle
2000-08-24 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 click signal which gets sent if the user hits the left or middle mouse button on a cell. svn path=/trunk/; revision=5020
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 c4792eb87e..d083d44f21 100644
--- a/widgets/e-table/e-table-group-leaf.c
+++ b/widgets/e-table/e-table-group-leaf.c
@@ -115,6 +115,15 @@ etgl_right_click (GtkObject *object, gint row, gint col, GdkEvent *event, ETable
return 0;
}
+static gint
+etgl_click (GtkObject *object, gint row, gint col, GdkEvent *event, ETableGroupLeaf *etgl)
+{
+ if (row < E_TABLE_SUBSET(etgl->subset)->n_map)
+ return e_table_group_click (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)
{
@@ -154,6 +163,8 @@ etgl_realize (GnomeCanvasItem *item)
GTK_SIGNAL_FUNC(etgl_double_click), etgl);
gtk_signal_connect (GTK_OBJECT(etgl->item), "right_click",
GTK_SIGNAL_FUNC(etgl_right_click), etgl);
+ gtk_signal_connect (GTK_OBJECT(etgl->item), "click",
+ GTK_SIGNAL_FUNC(etgl_click), etgl);
gtk_signal_connect (GTK_OBJECT(etgl->item), "key_press",
GTK_SIGNAL_FUNC(etgl_key_press), etgl);
e_canvas_item_request_reflow(item);