aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-group-container.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-03-06 14:08:56 +0800
committerChris Lahey <clahey@src.gnome.org>2000-03-06 14:08:56 +0800
commitdf08e926e4ac496e75974620162e59cf323f623a (patch)
tree2b134fb9dee077bbc940ae9be3bde37fefaed9f3 /widgets/table/e-table-group-container.c
parent053267fc5d7a087b315612a43fc493083309f465 (diff)
downloadgsoc2013-evolution-df08e926e4ac496e75974620162e59cf323f623a.tar
gsoc2013-evolution-df08e926e4ac496e75974620162e59cf323f623a.tar.gz
gsoc2013-evolution-df08e926e4ac496e75974620162e59cf323f623a.tar.bz2
gsoc2013-evolution-df08e926e4ac496e75974620162e59cf323f623a.tar.lz
gsoc2013-evolution-df08e926e4ac496e75974620162e59cf323f623a.tar.xz
gsoc2013-evolution-df08e926e4ac496e75974620162e59cf323f623a.tar.zst
gsoc2013-evolution-df08e926e4ac496e75974620162e59cf323f623a.zip
Add a "row_selection" signal.
2000-03-06 Christopher James Lahey <clahey@helixcode.com> * e-table.c, e-table.h: Add a "row_selection" signal. * test-table.c: Test the new "row_selection" signal. * e-table-group-container.c, e-table-group-leaf.c: Implement the "row_selection" property properly. * e-table-group.c, e-table-group.h: Add a "row_selection" signal. svn path=/trunk/; revision=2069
Diffstat (limited to 'widgets/table/e-table-group-container.c')
-rw-r--r--widgets/table/e-table-group-container.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/widgets/table/e-table-group-container.c b/widgets/table/e-table-group-container.c
index 1ae73b6c3b..589b59c976 100644
--- a/widgets/table/e-table-group-container.c
+++ b/widgets/table/e-table-group-container.c
@@ -526,6 +526,12 @@ compute_text (ETableGroupContainer *etgc, ETableGroupContainerChildNode *child_n
g_free(text);
}
+static void
+child_row_selection (ETableGroup *etg, int row, gboolean selected, ETableGroupContainer *etgc)
+{
+ e_table_group_row_selection(E_TABLE_GROUP(etgc), row, selected);
+}
+
static void etgc_add (ETableGroup *etg, gint row)
{
ETableGroupContainer *etgc = E_TABLE_GROUP_CONTAINER(etg);
@@ -565,6 +571,8 @@ static void etgc_add (ETableGroup *etg, gint row)
"fill_color", "black",
NULL);
child = e_table_group_new(GNOME_CANVAS_GROUP(etgc), etg->full_header, etg->header, etg->model, etgc->child_rules);
+ gtk_signal_connect(GTK_OBJECT(child), "row_selection",
+ GTK_SIGNAL_FUNC(child_row_selection), etgc);
child_node->child = child;
child_node->key = e_table_model_duplicate_value(etg->model, etgc->ecol->col_idx, val);