[tasque/transition: 170/213] [libtasque] Add OnDeleteTask hook.
- From: Antonius Riha <antoniusri src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tasque/transition: 170/213] [libtasque] Add OnDeleteTask hook.
- Date: Wed, 29 Aug 2012 18:48:19 +0000 (UTC)
commit a4613c05dbbc63809edf0387e14016eff3fdf771
Author: Antonius Riha <antoniusriha gmail com>
Date: Sat Aug 18 22:28:36 2012 +0200
[libtasque] Add OnDeleteTask hook.
src/libtasque/Backend.cs | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/libtasque/Backend.cs b/src/libtasque/Backend.cs
index a4e36f7..e986faf 100644
--- a/src/libtasque/Backend.cs
+++ b/src/libtasque/Backend.cs
@@ -177,8 +177,12 @@ namespace Tasque
foreach (var cat in Categories)
cat.Remove (task);
+
+ OnDeleteTask (task);
}
-
+
+ protected virtual void OnDeleteTask (Task task) {}
+
/// <summary>
/// Initializes the backend
/// </summary>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]