[grilo-plugins] tracker: Invoke callback when operation is cancelled.
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] tracker: Invoke callback when operation is cancelled.
- Date: Fri, 21 Jan 2011 17:30:17 +0000 (UTC)
commit 5fcd64c1c361673c52504ca5230acd8305f3f73e
Author: Lionel Landwerlin <lionel g landwerlin linux intel com>
Date: Fri Jan 21 18:28:31 2011 +0100
tracker: Invoke callback when operation is cancelled.
Even in the case of cancelling an operation, this must invoke the
callback for last time, setting remaining value to 0.
Signed-off-by: Juan A. Suarez Romero <jasuarez igalia com>
src/tracker/grl-tracker.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker/grl-tracker.c b/src/tracker/grl-tracker.c
index ddfc1b6..7ec2ab9 100644
--- a/src/tracker/grl-tracker.c
+++ b/src/tracker/grl-tracker.c
@@ -602,6 +602,10 @@ tracker_query_result_cb (GObject *source_object,
if (g_cancellable_is_cancelled (operation->cancel_op)) {
GRL_DEBUG ("\tOperation %u cancelled", operation->operation_id);
+ operation->callback (operation->source,
+ operation->operation_id,
+ NULL, 0,
+ operation->user_data, NULL);
tracker_operation_terminate (operation);
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]