diff options
author | Dan Winship <danw@src.gnome.org> | 2002-09-20 02:28:24 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2002-09-20 02:28:24 +0800 |
commit | c480805ecc1fbde31fcc0d3b772c3fee3f18bdf1 (patch) | |
tree | 9fe01c14aa1acfab53db1a7847aa562566797c93 | |
parent | b8ea035b9f04570ca8de2805ca6e63a7032afb9c (diff) | |
download | gsoc2013-evolution-c480805ecc1fbde31fcc0d3b772c3fee3f18bdf1.tar gsoc2013-evolution-c480805ecc1fbde31fcc0d3b772c3fee3f18bdf1.tar.gz gsoc2013-evolution-c480805ecc1fbde31fcc0d3b772c3fee3f18bdf1.tar.bz2 gsoc2013-evolution-c480805ecc1fbde31fcc0d3b772c3fee3f18bdf1.tar.lz gsoc2013-evolution-c480805ecc1fbde31fcc0d3b772c3fee3f18bdf1.tar.xz gsoc2013-evolution-c480805ecc1fbde31fcc0d3b772c3fee3f18bdf1.tar.zst gsoc2013-evolution-c480805ecc1fbde31fcc0d3b772c3fee3f18bdf1.zip |
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
-rw-r--r-- | widgets/table/e-table.c | 7 |
1 files changed, 2 insertions, 5 deletions
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); |