[notification-daemon] Fix GSource usage with recent GLib
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [notification-daemon] Fix GSource usage with recent GLib
- Date: Thu, 30 Oct 2014 00:32:15 +0000 (UTC)
commit 122865dade01c910bd782a122df62c5a85308399
Author: Balló György <ballogyor gmail com>
Date: Wed Oct 8 23:35:37 2014 +0200
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(+), 0 deletions(-)
---
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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]