[gnome-photos] export-notification: Remove timeout_id during destruction



commit 03c74eced1696f3dcc5f78ac42f0acdf593c0197
Author: Rafael Fonseca <r4f4rfs gmail com>
Date:   Mon Mar 21 15:35:41 2016 +0100

    export-notification: Remove timeout_id during destruction
    
    https://bugzilla.gnome.org/show_bug.cgi?id=763908

 src/photos-export-notification.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/photos-export-notification.c b/src/photos-export-notification.c
index d57d5f7..2b184cb 100644
--- a/src/photos-export-notification.c
+++ b/src/photos-export-notification.c
@@ -325,11 +325,9 @@ photos_export_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,
-                                                 EXPORT_TIMEOUT,
-                                                 photos_export_notification_timeout,
-                                                 g_object_ref (self),
-                                                 g_object_unref);
+  self->timeout_id = g_timeout_add_seconds (EXPORT_TIMEOUT,
+                                            photos_export_notification_timeout,
+                                            self);
 }
 
 
@@ -338,6 +336,8 @@ photos_export_notification_dispose (GObject *object)
 {
   PhotosExportNotification *self = PHOTOS_EXPORT_NOTIFICATION (object);
 
+  photos_export_notification_remove_timeout (self);
+
   if (self->items != NULL)
     {
       g_list_free_full (self->items, g_object_unref);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]