diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-07-27 09:36:20 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-07-27 09:36:20 +0800 |
commit | 5e3f91d87bde1ca8484b4a35fc3cdc2f1ede8a85 (patch) | |
tree | a4e8f215cad48648f602435e6d7c75226c0b9bc2 /widgets/e-table/e-table-selection-model.c | |
parent | d1cc23165dd9f8d853b6384f038e97afcc51e22c (diff) | |
download | gsoc2013-evolution-5e3f91d87bde1ca8484b4a35fc3cdc2f1ede8a85.tar gsoc2013-evolution-5e3f91d87bde1ca8484b4a35fc3cdc2f1ede8a85.tar.gz gsoc2013-evolution-5e3f91d87bde1ca8484b4a35fc3cdc2f1ede8a85.tar.bz2 gsoc2013-evolution-5e3f91d87bde1ca8484b4a35fc3cdc2f1ede8a85.tar.lz gsoc2013-evolution-5e3f91d87bde1ca8484b4a35fc3cdc2f1ede8a85.tar.xz gsoc2013-evolution-5e3f91d87bde1ca8484b4a35fc3cdc2f1ede8a85.tar.zst gsoc2013-evolution-5e3f91d87bde1ca8484b4a35fc3cdc2f1ede8a85.zip |
Fixed a reference.
2000-07-26 Christopher James Lahey <clahey@helixcode.com>
* e-table-click-to-add.c: Fixed a reference.
* e-table-selection-model.c, e-table-selection-model.h: Added a
clear function.
* e-table.c, e-table.h: Made going from click to add to the main
table and back work better.
svn path=/trunk/; revision=4373
Diffstat (limited to 'widgets/e-table/e-table-selection-model.c')
-rw-r--r-- | widgets/e-table/e-table-selection-model.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/widgets/e-table/e-table-selection-model.c b/widgets/e-table/e-table-selection-model.c index f896e37eaa..618adc8dae 100644 --- a/widgets/e-table/e-table-selection-model.c +++ b/widgets/e-table/e-table-selection-model.c @@ -44,11 +44,7 @@ enum { static void model_changed(ETableModel *etm, ETableSelectionModel *etsm) { - g_free(etsm->selection); - etsm->selection = NULL; - etsm->row_count = -1; - gtk_signal_emit(GTK_OBJECT(etsm), - e_table_selection_model_signals [SELECTION_CHANGED]); + e_table_selection_model_clear(etsm); } #if 1 @@ -386,3 +382,13 @@ void e_table_selection_model_do_something (ETableSelectionModel } } } + +void +e_table_selection_model_clear(ETableSelectionModel *selection) +{ + g_free(selection->selection); + selection->selection = NULL; + selection->row_count = -1; + gtk_signal_emit(GTK_OBJECT(selection), + e_table_selection_model_signals [SELECTION_CHANGED]); +} |