diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-08-25 05:13:17 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-08-25 05:13:17 +0800 |
commit | 5e1949f93523c93bd8a1384e2c71a12e0717219d (patch) | |
tree | 7731a10fafe498700b4d95841cef912aa16d8762 /widgets/e-table/e-table-item.c | |
parent | 3877d4077d333964b165d45e3e400a2b5ea1296f (diff) | |
download | gsoc2013-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-item.c')
-rw-r--r-- | widgets/e-table/e-table-item.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/widgets/e-table/e-table-item.c b/widgets/e-table/e-table-item.c index afa1bb8f96..fdc5f1b36b 100644 --- a/widgets/e-table/e-table-item.c +++ b/widgets/e-table/e-table-item.c @@ -33,6 +33,7 @@ enum { CURSOR_CHANGE, DOUBLE_CLICK, RIGHT_CLICK, + CLICK, KEY_PRESS, LAST_SIGNAL }; @@ -1440,6 +1441,9 @@ eti_event (GnomeCanvasItem *item, GdkEvent *e) e_cell_event (ecell_view, e, view_to_model_col(eti, col), col, row); } + + gtk_signal_emit (GTK_OBJECT (eti), eti_signals [RIGHT_CLICK], + row, col, e, &return_val); break; case 3: gnome_canvas_item_w2i (item, &e->button.x, &e->button.y); @@ -1709,6 +1713,7 @@ eti_class_init (GtkObjectClass *object_class) eti_class->cursor_change = NULL; eti_class->double_click = NULL; eti_class->right_click = NULL; + eti_class->click = NULL; eti_class->key_press = NULL; gtk_object_add_arg_type ("ETableItem::ETableHeader", GTK_TYPE_OBJECT, @@ -1759,6 +1764,14 @@ eti_class_init (GtkObjectClass *object_class) e_marshal_INT__INT_INT_POINTER, GTK_TYPE_INT, 3, GTK_TYPE_INT, GTK_TYPE_INT, GTK_TYPE_POINTER); + eti_signals [CLICK] = + gtk_signal_new ("click", + GTK_RUN_LAST, + object_class->type, + GTK_SIGNAL_OFFSET (ETableItemClass, click), + e_marshal_INT__INT_INT_POINTER, + GTK_TYPE_INT, 3, GTK_TYPE_INT, GTK_TYPE_INT, GTK_TYPE_POINTER); + eti_signals [KEY_PRESS] = gtk_signal_new ("key_press", GTK_RUN_LAST, |