[notification-daemon] Add "persistence" server capability



commit 95bd603527748da2aa8bd88d2cb4395a920900dc
Author: William Jon McCann <jmccann redhat com>
Date:   Fri Oct 8 20:43:06 2010 -0400

    Add "persistence" server capability
    
    This will allow clients to determine if the server will only show
    transient notifications or has notification persistence.  If the server
    supports persistence then the client should not perform its own message
    persistence (for example by showing a status icon).

 src/daemon.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/daemon.c b/src/daemon.c
index c29464d..a26bb93 100644
--- a/src/daemon.c
+++ b/src/daemon.c
@@ -322,6 +322,7 @@ notify_daemon_get_capabilities (NotifyDaemon *daemon,
         g_ptr_array_add (a, g_strdup ("body-markup"));
         g_ptr_array_add (a, g_strdup ("icon-static"));
         g_ptr_array_add (a, g_strdup ("sound"));
+        g_ptr_array_add (a, g_strdup ("persistence"));
         g_ptr_array_add (a, NULL);
         _caps = (char **) g_ptr_array_free (a, FALSE);
 



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