diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2001-01-25 22:48:39 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-01-25 22:48:39 +0800 |
commit | 9c73622d3869ef66c795f8fa583e726ef8798563 (patch) | |
tree | b3e64bf3a408385876d6bfa4d8f92ea1a2f20e25 /widgets/table/e-table-group-leaf.c | |
parent | 735020a97601de2799e6107c45b35047fedb7efa (diff) | |
download | gsoc2013-evolution-9c73622d3869ef66c795f8fa583e726ef8798563.tar gsoc2013-evolution-9c73622d3869ef66c795f8fa583e726ef8798563.tar.gz gsoc2013-evolution-9c73622d3869ef66c795f8fa583e726ef8798563.tar.bz2 gsoc2013-evolution-9c73622d3869ef66c795f8fa583e726ef8798563.tar.lz gsoc2013-evolution-9c73622d3869ef66c795f8fa583e726ef8798563.tar.xz gsoc2013-evolution-9c73622d3869ef66c795f8fa583e726ef8798563.tar.zst gsoc2013-evolution-9c73622d3869ef66c795f8fa583e726ef8798563.zip |
Documented. Added a "cursor_activated" signal. Removed some unused
2001-01-25 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:
Documented. Added a "cursor_activated" signal. Removed some
unused functions (e_table_group_get_count and
e_table_group_get_ecol).
* e-table-selection-model.c, e-table-selection-model.h: Added a
"cursor_activated" signal. Call it when the user changes the
selection to match the cursor.
* e-table.c, e-table.h: Added a "cursor_activated" signal. Fixed
the e_table_compute_location function to take into account the
scrolled position.
svn path=/trunk/; revision=7808
Diffstat (limited to 'widgets/table/e-table-group-leaf.c')
-rw-r--r-- | widgets/table/e-table-group-leaf.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/widgets/table/e-table-group-leaf.c b/widgets/table/e-table-group-leaf.c index 070bce2838..86703304b4 100644 --- a/widgets/table/e-table-group-leaf.c +++ b/widgets/table/e-table-group-leaf.c @@ -65,6 +65,19 @@ e_table_group_leaf_construct (GnomeCanvasGroup *parent, e_table_group_construct (parent, E_TABLE_GROUP (etgl), full_header, header, model); } +/** + * e_table_group_leaf_new + * @parent: The %GnomeCanvasGroup to create a child of. + * @full_header: The full header of the %ETable. + * @header: The current header of the %ETable. + * @model: The %ETableModel of the %ETable. + * @sort_info: The %ETableSortInfo of the %ETable. + * + * %ETableGroupLeaf is an %ETableGroup which simply contains an + * %ETableItem. + * + * Returns: The new %ETableGroupLeaf. + */ ETableGroup * e_table_group_leaf_new (GnomeCanvasGroup *parent, ETableHeader *full_header, @@ -91,6 +104,13 @@ etgl_cursor_change (GtkObject *object, gint row, ETableGroupLeaf *etgl) } static void +etgl_cursor_activated (GtkObject *object, gint row, ETableGroupLeaf *etgl) +{ + if (row < E_TABLE_SUBSET(etgl->subset)->n_map) + e_table_group_cursor_activated (E_TABLE_GROUP(etgl), E_TABLE_SUBSET(etgl->subset)->map_table[row]); +} + +static void etgl_double_click (GtkObject *object, gint row, gint col, GdkEvent *event, ETableGroupLeaf *etgl) { if (row < E_TABLE_SUBSET(etgl->subset)->n_map) @@ -159,6 +179,8 @@ etgl_realize (GnomeCanvasItem *item) gtk_signal_connect (GTK_OBJECT(etgl->item), "cursor_change", GTK_SIGNAL_FUNC(etgl_cursor_change), etgl); + gtk_signal_connect (GTK_OBJECT(etgl->item), "cursor_activated", + GTK_SIGNAL_FUNC(etgl_cursor_activated), etgl); gtk_signal_connect (GTK_OBJECT(etgl->item), "double_click", GTK_SIGNAL_FUNC(etgl_double_click), etgl); gtk_signal_connect (GTK_OBJECT(etgl->item), "right_click", |