[gnome-photos] tracker-controller: Don't use g_cancellable_reset
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] tracker-controller: Don't use g_cancellable_reset
- Date: Thu, 1 Dec 2016 09:25:58 +0000 (UTC)
commit 56f8281d951600676a2b80f2d336b09a2d0b6c68
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Nov 29 13:50:18 2016 +0100
tracker-controller: Don't use g_cancellable_reset
https://bugzilla.gnome.org/show_bug.cgi?id=763908
src/photos-tracker-controller.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-tracker-controller.c b/src/photos-tracker-controller.c
index 041a0cf..aa70839 100644
--- a/src/photos-tracker-controller.c
+++ b/src/photos-tracker-controller.c
@@ -208,7 +208,8 @@ photos_tracker_controller_perform_current_query (PhotosTrackerController *self)
priv->current_query = PHOTOS_TRACKER_CONTROLLER_GET_CLASS (self)->get_query (self);
g_return_if_fail (priv->current_query != NULL);
- g_cancellable_reset (priv->cancellable);
+ g_object_unref (priv->cancellable);
+ priv->cancellable = g_cancellable_new ();
if (G_UNLIKELY (priv->queue == NULL))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]