Sophie

Sophie

distrib > Mageia > 5 > i586 > by-pkgid > 8428df10f30ba8cd94a594b39a976864 > files > 1

notification-daemon-0.7.6-7.mga5.src.rpm

From 7e458afddc7c57eba5c392a7a89990600a070ae5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= <ballogyor@gmail.com>
Date: Wed, 8 Oct 2014 23:35:37 +0200
Subject: [PATCH] Fix GSource usage with recent GLib

https://bugzilla.gnome.org/show_bug.cgi?id=728157
---
 src/nd-bubble.c | 1 +
 src/nd-queue.c  | 5 +++++
 2 files changed, 6 insertions(+)

diff --git a/src/nd-bubble.c b/src/nd-bubble.c
index 0587478..6de7f8f 100644
--- a/src/nd-bubble.c
+++ b/src/nd-bubble.c
@@ -420,6 +420,7 @@ nd_bubble_enter_notify_event (GtkWidget        *widget,
         NdBubble *bubble = ND_BUBBLE (widget);
         if (bubble->priv->timeout_id != 0) {
                 g_source_remove (bubble->priv->timeout_id);
+                bubble->priv->timeout_id = 0;
         }
 
         return FALSE;
diff --git a/src/nd-queue.c b/src/nd-queue.c
index de73940..b744b88 100644
--- a/src/nd-queue.c
+++ b/src/nd-queue.c
@@ -532,6 +532,10 @@ nd_queue_finalize (GObject *object)
 
         g_return_if_fail (queue->priv != NULL);
 
+        if (queue->priv->update_id != 0) {
+                g_source_remove (queue->priv->update_id);
+        }
+
         g_hash_table_destroy (queue->priv->notifications);
         g_queue_free (queue->priv->queue);
 
@@ -919,6 +923,7 @@ update_idle (NdQueue *queue)
                 }
         }
 
+        queue->priv->update_id = 0;
         return FALSE;
 }
 
-- 
2.1.2