aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--widgets/misc/e-selection-model.c4
-rw-r--r--widgets/misc/e-selection-model.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/widgets/misc/e-selection-model.c b/widgets/misc/e-selection-model.c
index ec641e8373..3fd28a7db2 100644
--- a/widgets/misc/e-selection-model.c
+++ b/widgets/misc/e-selection-model.c
@@ -422,7 +422,7 @@ e_selection_model_do_something (ESelectionModel *selection,
* right clicks and other events where if the user hit the selection,
* they don't want it to change.
*/
-void
+gboolean
e_selection_model_maybe_do_something (ESelectionModel *selection,
guint row,
guint col,
@@ -432,8 +432,10 @@ e_selection_model_maybe_do_something (ESelectionModel *selection,
e_selection_model_change_cursor(selection, row, col);
gtk_signal_emit(GTK_OBJECT(selection),
e_selection_model_signals[CURSOR_CHANGED], row, col);
+ return FALSE;
} else {
e_selection_model_do_something(selection, row, col, state);
+ return TRUE;
}
}
diff --git a/widgets/misc/e-selection-model.h b/widgets/misc/e-selection-model.h
index f83d2631eb..6ab5db9ee6 100644
--- a/widgets/misc/e-selection-model.h
+++ b/widgets/misc/e-selection-model.h
@@ -76,7 +76,7 @@ void e_selection_model_do_something (ESelectionModel *esm,
guint row,
guint col,
GdkModifierType state);
-void e_selection_model_maybe_do_something (ESelectionModel *esm,
+gboolean e_selection_model_maybe_do_something (ESelectionModel *esm,
guint row,
guint col,
GdkModifierType state);