[gnome-photos] delete-notification: Remove timeout_id during destruction
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] delete-notification: Remove timeout_id during destruction
- Date: Fri, 1 Apr 2016 12:48:51 +0000 (UTC)
commit cd62e4c2854201c16239b5a4b0dc9fcba491485b
Author: Rafael Fonseca <r4f4rfs gmail com>
Date: Mon Mar 21 15:43:53 2016 +0100
delete-notification: Remove timeout_id during destruction
https://bugzilla.gnome.org/show_bug.cgi?id=763908
src/photos-delete-notification.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/photos-delete-notification.c b/src/photos-delete-notification.c
index d298cbf..2b3e2ab 100644
--- a/src/photos-delete-notification.c
+++ b/src/photos-delete-notification.c
@@ -173,11 +173,9 @@ photos_delete_notification_constructed (GObject *object)
photos_notification_manager_add_notification (PHOTOS_NOTIFICATION_MANAGER (self->ntfctn_mngr),
GTK_WIDGET (self));
- self->timeout_id = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT,
- DELETE_TIMEOUT,
- photos_delete_notification_timeout,
- g_object_ref (self),
- g_object_unref);
+ self->timeout_id = g_timeout_add_seconds (DELETE_TIMEOUT,
+ photos_delete_notification_timeout,
+ self);
}
@@ -186,6 +184,8 @@ photos_delete_notification_dispose (GObject *object)
{
PhotosDeleteNotification *self = PHOTOS_DELETE_NOTIFICATION (object);
+ photos_delete_notification_remove_timeout (self);
+
g_list_free_full (self->items, g_object_unref);
self->items = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]