From 36c2e495136a79067158d6c08b418bcb7d511657 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Fri, 12 Jan 2001 03:57:32 +0000 Subject: Added selection_mode argument. 2001-01-11 Christopher James Lahey * e-table-selection-model.c, e-table-selection-model.h: Added selection_mode argument. * e-table-specification.c, e-table-specification.h: Added a selection_mode field that is set based on the selection-mode attribute in the ETableSpecification element. * e-table.c (et_real_construct): Set the selection model's selection mode based on the ETableSpecification. svn path=/trunk/; revision=7427 --- widgets/table/e-table.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'widgets/table/e-table.c') diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c index 4311005107..2d2303def1 100644 --- a/widgets/table/e-table.c +++ b/widgets/table/e-table.c @@ -891,6 +891,10 @@ et_real_construct (ETable *e_table, ETableModel *etm, ETableExtras *ete, e_table->cursor_mode = specification->cursor_mode; e_table->full_header = et_spec_to_full_header(e_table, specification, ete); + gtk_object_set(GTK_OBJECT(e_table->selection), + "selection_mode", specification->selection_mode, + NULL); + e_table->model = etm; gtk_object_ref (GTK_OBJECT (etm)); -- cgit v1.2.3