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/e-table/e-table-group-leaf.c | |
parent | 0473e106f01671731351f69bdf29f3d438b75b05 (diff) | |
download | gsoc2013-evolution-f91435fc0c0186d48079dc44d8626135eba92462.tar gsoc2013-evolution-f91435fc0c0186d48079dc44d8626135eba92462.tar.gz gsoc2013-evolution-f91435fc0c0186d48079dc44d8626135eba92462.tar.bz2 gsoc2013-evolution-f91435fc0c0186d48079dc44d8626135eba92462.tar.lz gsoc2013-evolution-f91435fc0c0186d48079dc44d8626135eba92462.tar.xz 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/e-table/e-table-group-leaf.c')
-rw-r--r-- | widgets/e-table/e-table-group-leaf.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/widgets/e-table/e-table-group-leaf.c b/widgets/e-table/e-table-group-leaf.c index 4f7f462ee8..674a70608a 100644 --- a/widgets/e-table/e-table-group-leaf.c +++ b/widgets/e-table/e-table-group-leaf.c @@ -91,6 +91,13 @@ etgl_row_selection (GtkObject *object, gint row, gboolean selected, ETableGroupL } static void +etgl_double_click (GtkObject *object, gint row, ETableGroupLeaf *etgl) +{ + if (row < E_TABLE_SUBSET(etgl->subset)->n_map) + e_table_group_double_click (E_TABLE_GROUP(etgl), E_TABLE_SUBSET(etgl->subset)->map_table[row]); +} + +static void etgl_reflow (GnomeCanvasItem *item, gint flags) { ETableGroupLeaf *leaf = E_TABLE_GROUP_LEAF(item); @@ -124,6 +131,8 @@ etgl_realize (GnomeCanvasItem *item) gtk_signal_connect (GTK_OBJECT(etgl->item), "row_selection", GTK_SIGNAL_FUNC(etgl_row_selection), etgl); + gtk_signal_connect (GTK_OBJECT(etgl->item), "double_click", + GTK_SIGNAL_FUNC(etgl_double_click), etgl); e_canvas_item_request_reflow(item); } |