aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-10-05 06:36:49 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-10-05 06:36:49 +0800
commitaf89b251904fa5abe2a046ebab62042ab9ce7ed9 (patch)
tree51ce5ed8efcf7fab96c0d86ff53306c4e5d782ee
parent9e9dea1fdf22db06f37f971964210afce146dc6a (diff)
downloadgsoc2013-evolution-af89b251904fa5abe2a046ebab62042ab9ce7ed9.tar
gsoc2013-evolution-af89b251904fa5abe2a046ebab62042ab9ce7ed9.tar.gz
gsoc2013-evolution-af89b251904fa5abe2a046ebab62042ab9ce7ed9.tar.bz2
gsoc2013-evolution-af89b251904fa5abe2a046ebab62042ab9ce7ed9.tar.lz
gsoc2013-evolution-af89b251904fa5abe2a046ebab62042ab9ce7ed9.tar.xz
gsoc2013-evolution-af89b251904fa5abe2a046ebab62042ab9ce7ed9.tar.zst
gsoc2013-evolution-af89b251904fa5abe2a046ebab62042ab9ce7ed9.zip
Emit the selection/cursor "changed" signals.
2000-10-04 Jeffrey Stedfast <fejj@helixcode.com> * e-table-selection-model.c (e_table_selection_model_invert_selection): Emit the selection/cursor "changed" signals. (e_table_selection_model_select_all): Same. svn path=/trunk/; revision=5724
-rw-r--r--widgets/table/e-table-selection-model.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/widgets/table/e-table-selection-model.c b/widgets/table/e-table-selection-model.c
index 552d632fc9..10b54ce6bf 100644
--- a/widgets/table/e-table-selection-model.c
+++ b/widgets/table/e-table-selection-model.c
@@ -239,6 +239,9 @@ e_table_selection_model_init (ETableSelectionModel *selection)
selection->selection = NULL;
selection->row_count = -1;
selection->model = NULL;
+ selection->selection_start_row = 0;
+ selection->cursor_row = -1;
+ selection->cursor_col = -1;
}
static void
@@ -521,6 +524,14 @@ e_table_selection_model_select_all (ETableSelectionModel *selection)
for (i = 0; i < (selection->row_count + 31) / 32; i ++) {
selection->selection[i] = ONES;
}
+
+ selection->cursor_col = 0;
+ selection->cursor_row = 0;
+ selection->selection_start_row = 0;
+ gtk_signal_emit (GTK_OBJECT (selection),
+ e_table_selection_model_signals [CURSOR_CHANGED], 0, 0);
+ gtk_signal_emit (GTK_OBJECT (selection),
+ e_table_selection_model_signals [SELECTION_CHANGED]);
}
void
@@ -542,4 +553,12 @@ e_table_selection_model_invert_selection (ETableSelectionModel *selection)
for (i = 0; i < (selection->row_count + 31) / 32; i ++) {
selection->selection[i] = ~selection->selection[i];
}
+
+ selection->cursor_col = -1;
+ selection->cursor_row = -1;
+ selection->selection_start_row = 0;
+ 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]);
}