[notification-daemon] Emit changed signal when doing remove all



commit 438cc4f0ba5cb4f94411cd5803b89e2882be93e5
Author: William Jon McCann <jmccann redhat com>
Date:   Fri Oct 8 18:09:06 2010 -0400

    Emit changed signal when doing remove all
    
    So that the daemon will exit...

 src/nd-queue.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/nd-queue.c b/src/nd-queue.c
index 49c63c7..8dd3ec8 100644
--- a/src/nd-queue.c
+++ b/src/nd-queue.c
@@ -365,6 +365,9 @@ _nd_queue_remove_all (NdQueue *queue)
 {
         GHashTableIter iter;
         gpointer       key, value;
+        gboolean       changed;
+
+        changed = FALSE;
 
         clear_stacks (queue);
 
@@ -376,9 +379,14 @@ _nd_queue_remove_all (NdQueue *queue)
                 g_signal_handlers_disconnect_by_func (n, G_CALLBACK (on_notification_close), queue);
                 nd_notification_close (n, ND_NOTIFICATION_CLOSED_USER);
                 g_hash_table_iter_remove (&iter);
+                changed = TRUE;
         }
         popdown_dock (queue);
         queue_update (queue);
+
+        if (changed) {
+                g_signal_emit (queue, signals[CHANGED], 0);
+        }
 }
 
 static void



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