diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-05-28 12:25:22 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-05-28 12:25:22 +0800 |
commit | f91435fc0c0186d48079dc44d8626135eba92462 (patch) | |
tree | e8e3cac32823d3ff377dbebfa72351a0d2e8eb50 /widgets/table/e-table-group.c | |
parent | 0473e106f01671731351f69bdf29f3d438b75b05 (diff) | |
download | gsoc2013-evolution-f91435fc0c0186d48079dc44d8626135eba92462.tar.gz gsoc2013-evolution-f91435fc0c0186d48079dc44d8626135eba92462.tar.zst gsoc2013-evolution-f91435fc0c0186d48079dc44d8626135eba92462.zip |
Added double click handling.
2000-05-28 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 double click handling.
svn path=/trunk/; revision=3238
Diffstat (limited to 'widgets/table/e-table-group.c')
-rw-r--r-- | widgets/table/e-table-group.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/widgets/table/e-table-group.c b/widgets/table/e-table-group.c index 5adc4f85b1..90893cfee2 100644 --- a/widgets/table/e-table-group.c +++ b/widgets/table/e-table-group.c @@ -29,6 +29,7 @@ static GnomeCanvasGroupClass *etg_parent_class; enum { ROW_SELECTION, + DOUBLE_CLICK, LAST_SIGNAL }; @@ -202,6 +203,17 @@ e_table_group_row_selection (ETableGroup *e_table_group, gint row, gboolean sele row, selected); } +void +e_table_group_double_click (ETableGroup *e_table_group, gint row) +{ + g_return_if_fail (e_table_group != NULL); + g_return_if_fail (E_IS_TABLE_GROUP (e_table_group)); + + gtk_signal_emit (GTK_OBJECT (e_table_group), + etg_signals [DOUBLE_CLICK], + row); +} + ETableHeader * e_table_group_get_header (ETableGroup *etg) { @@ -251,6 +263,7 @@ etg_class_init (GtkObjectClass *object_class) item_class->event = etg_event; klass->row_selection = NULL; + klass->double_click = NULL; klass->add = NULL; klass->add_all = NULL; @@ -271,6 +284,14 @@ etg_class_init (GtkObjectClass *object_class) gtk_marshal_NONE__INT_INT, GTK_TYPE_NONE, 2, GTK_TYPE_INT, GTK_TYPE_INT); + etg_signals [DOUBLE_CLICK] = + gtk_signal_new ("double_click", + GTK_RUN_LAST, + object_class->type, + GTK_SIGNAL_OFFSET (ETableGroupClass, double_click), + gtk_marshal_NONE__INT, + GTK_TYPE_NONE, 1, GTK_TYPE_INT); + gtk_object_class_add_signals (object_class, etg_signals, LAST_SIGNAL); } |