From c480805ecc1fbde31fcc0d3b772c3fee3f18bdf1 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 19 Sep 2002 18:28:24 +0000 Subject: Set the selection model's selection_mode after setting the table model, or * e-table.c (et_real_construct): Set the selection model's selection_mode after setting the table model, or things will break in the GTK_SELECTION_SINGLE case if the table doesn't start out empty. svn path=/trunk/; revision=18121 --- widgets/table/e-table.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'widgets/table/e-table.c') diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c index 5af05304ba..bf9e850322 100644 --- a/widgets/table/e-table.c +++ b/widgets/table/e-table.c @@ -1411,11 +1411,6 @@ et_real_construct (ETable *e_table, ETableModel *etm, ETableExtras *ete, e_table->cursor_mode = specification->cursor_mode; e_table->full_header = e_table_spec_to_full_header(specification, ete); - gtk_object_set(GTK_OBJECT(e_table->selection), - "selection_mode", specification->selection_mode, - "cursor_mode", specification->cursor_mode, - NULL); - e_table->model = etm; gtk_object_ref (GTK_OBJECT (etm)); @@ -1448,6 +1443,8 @@ et_real_construct (ETable *e_table, ETableModel *etm, ETableExtras *ete, gtk_object_set (GTK_OBJECT (e_table->selection), "model", etm, + "selection_mode", specification->selection_mode, + "cursor_mode", specification->cursor_mode, "sorter", e_table->sorter, "header", e_table->header, NULL); -- cgit v1.2.3