aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table/e-table-selection-model.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-07-27 16:44:20 +0800
committerChris Lahey <clahey@src.gnome.org>2000-07-27 16:44:20 +0800
commit9d1dafcffb2482ab198577c1f929b5f052c0db51 (patch)
treec894d388ac33dfbb3d113bc5b7444b09d9dc4ab9 /widgets/e-table/e-table-selection-model.c
parent324c39e2cce3454eec44f7afc92b96dd478e91e6 (diff)
downloadgsoc2013-evolution-9d1dafcffb2482ab198577c1f929b5f052c0db51.tar
gsoc2013-evolution-9d1dafcffb2482ab198577c1f929b5f052c0db51.tar.gz
gsoc2013-evolution-9d1dafcffb2482ab198577c1f929b5f052c0db51.tar.bz2
gsoc2013-evolution-9d1dafcffb2482ab198577c1f929b5f052c0db51.tar.lz
gsoc2013-evolution-9d1dafcffb2482ab198577c1f929b5f052c0db51.tar.xz
gsoc2013-evolution-9d1dafcffb2482ab198577c1f929b5f052c0db51.tar.zst
gsoc2013-evolution-9d1dafcffb2482ab198577c1f929b5f052c0db51.zip
Clear the selection model when activating.
2000-07-27 Christopher James Lahey <clahey@helixcode.com> * e-table-click-to-add.c: Clear the selection model when activating. * e-table-item.c: Fixed a bunch of model column vs. view column issues. * e-table-selection-model.c: Set the cursor to -1, -1 and emi a "cursor_changed" signal. svn path=/trunk/; revision=4380
Diffstat (limited to 'widgets/e-table/e-table-selection-model.c')
-rw-r--r--widgets/e-table/e-table-selection-model.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/widgets/e-table/e-table-selection-model.c b/widgets/e-table/e-table-selection-model.c
index 618adc8dae..b82d3c3a5e 100644
--- a/widgets/e-table/e-table-selection-model.c
+++ b/widgets/e-table/e-table-selection-model.c
@@ -375,10 +375,10 @@ void e_table_selection_model_do_something (ETableSelectionModel
}
if (selection->cursor_row != row ||
selection->cursor_col != col) {
- gtk_signal_emit(GTK_OBJECT(selection),
- e_table_selection_model_signals[CURSOR_CHANGED], row, col);
selection->cursor_row = row;
selection->cursor_col = col;
+ gtk_signal_emit(GTK_OBJECT(selection),
+ e_table_selection_model_signals[CURSOR_CHANGED], row, col);
}
}
}
@@ -389,6 +389,10 @@ e_table_selection_model_clear(ETableSelectionModel *selection)
g_free(selection->selection);
selection->selection = NULL;
selection->row_count = -1;
+ selection->cursor_row = -1;
+ selection->cursor_col = -1;
+ gtk_signal_emit(GTK_OBJECT(selection),
+ e_table_selection_model_signals [CURSOR_CHANGED], -1, -1);
gtk_signal_emit(GTK_OBJECT(selection),
e_table_selection_model_signals [SELECTION_CHANGED]);
}