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-container.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-container.c')
-rw-r--r-- | widgets/table/e-table-group-container.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/widgets/table/e-table-group-container.c b/widgets/table/e-table-group-container.c index 4327c2f94e..b92498657e 100644 --- a/widgets/table/e-table-group-container.c +++ b/widgets/table/e-table-group-container.c @@ -109,6 +109,18 @@ etgc_destroy (GtkObject *object) GTK_OBJECT_CLASS (etgc_parent_class)->destroy (object); } +/** + * e_table_group_container_construct + * @parent: The %GnomeCanvasGroup to create a child of. + * @etgc: The %ETableGroupContainer. + * @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. + * @n: Which grouping level this is (Starts at 0 and sends n + 1 to any child %ETableGroups. + * + * This routine constructs the new %ETableGroupContainer. + */ void e_table_group_container_construct (GnomeCanvasGroup *parent, ETableGroupContainer *etgc, ETableHeader *full_header, @@ -140,6 +152,21 @@ e_table_group_container_construct (GnomeCanvasGroup *parent, ETableGroupContaine etgc->open = TRUE; } +/** + * e_table_group_container_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. + * @n: Which grouping level this is (Starts at 0 and sends n + 1 to any child %ETableGroups. + * + * %ETableGroupContainer is an %ETableGroup which groups by the nth + * grouping of the %ETableSortInfo. It creates %ETableGroups as + * children. + * + * Returns: The new %ETableGroupContainer. + */ ETableGroup * e_table_group_container_new (GnomeCanvasGroup *parent, ETableHeader *full_header, ETableHeader *header, @@ -326,6 +353,13 @@ child_cursor_change (ETableGroup *etg, int row, } static void +child_cursor_activated (ETableGroup *etg, int row, + ETableGroupContainer *etgc) +{ + e_table_group_cursor_activated (E_TABLE_GROUP (etgc), row); +} + +static void child_double_click (ETableGroup *etg, int row, int col, GdkEvent *event, ETableGroupContainer *etgc) { @@ -406,6 +440,8 @@ etgc_add (ETableGroup *etg, gint row) gtk_signal_connect (GTK_OBJECT (child), "cursor_change", GTK_SIGNAL_FUNC (child_cursor_change), etgc); + gtk_signal_connect (GTK_OBJECT (child), "cursor_activated", + GTK_SIGNAL_FUNC (child_cursor_activated), etgc); gtk_signal_connect (GTK_OBJECT (child), "double_click", GTK_SIGNAL_FUNC (child_double_click), etgc); gtk_signal_connect (GTK_OBJECT (child), "right_click", |