From 3b06548b39ecad5f36ee8cdf5d6d091e5dbcff97 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Fri, 13 Apr 2001 12:06:31 +0000 Subject: Always emit the cursor changed signal. Even if it's changed to the same 2001-04-13 Christopher James Lahey * gal/widgets/e-selection-model.c (e_selection_model_do_something): Always emit the cursor changed signal. Even if it's changed to the same row/column. svn path=/trunk/; revision=9297 --- widgets/misc/e-selection-model.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/widgets/misc/e-selection-model.c b/widgets/misc/e-selection-model.c index 56562772bf..8734bd58ad 100644 --- a/widgets/misc/e-selection-model.c +++ b/widgets/misc/e-selection-model.c @@ -398,14 +398,11 @@ e_selection_model_do_something (ESelectionModel *selection, } break; } - if (e_selection_model_cursor_row(selection) != row || - e_selection_model_cursor_col(selection) != col) { - e_selection_model_change_cursor(selection, row, col); - gtk_signal_emit(GTK_OBJECT(selection), - e_selection_model_signals[CURSOR_CHANGED], row, col); - gtk_signal_emit(GTK_OBJECT(selection), - e_selection_model_signals[CURSOR_ACTIVATED], row, col); - } + e_selection_model_change_cursor(selection, row, col); + gtk_signal_emit(GTK_OBJECT(selection), + e_selection_model_signals[CURSOR_CHANGED], row, col); + gtk_signal_emit(GTK_OBJECT(selection), + e_selection_model_signals[CURSOR_ACTIVATED], row, col); } } -- cgit v1.2.3