[gnome-photos] indexing-notification: Remove timeout_id on destruction
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] indexing-notification: Remove timeout_id on destruction
- Date: Fri, 1 Apr 2016 22:24:46 +0000 (UTC)
commit 69d8dd84d9214c2ea3e2070e48d1c02cc877edfd
Author: Rafael Fonseca <r4f4rfs gmail com>
Date: Mon Mar 21 15:41:14 2016 +0100
indexing-notification: Remove timeout_id on destruction
https://bugzilla.gnome.org/show_bug.cgi?id=763908
src/photos-indexing-notification.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/photos-indexing-notification.c b/src/photos-indexing-notification.c
index 12deac5..50df4ba 100644
--- a/src/photos-indexing-notification.c
+++ b/src/photos-indexing-notification.c
@@ -214,11 +214,9 @@ photos_indexing_notification_check_notification (PhotosIndexingNotification *sel
else if (is_indexing_remote)
{
photos_indexing_notification_remove_timeout (self);
- self->timeout_id = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT,
- REMOTE_MINER_TIMEOUT,
- photos_indexing_notification_timeout,
- g_object_ref (self),
- g_object_unref);
+ self->timeout_id = g_timeout_add_seconds (REMOTE_MINER_TIMEOUT,
+ photos_indexing_notification_timeout,
+ self);
}
else
photos_indexing_notification_destroy (self, FALSE);
@@ -233,6 +231,7 @@ photos_indexing_notification_dispose (GObject *object)
{
PhotosIndexingNotification *self = PHOTOS_INDEXING_NOTIFICATION (object);
+ photos_indexing_notification_remove_timeout (self);
g_clear_object (&self->ntfctn_mngr);
g_clear_object (&self->manager);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]