[notification-daemon] Print warning when using icon_data hint



commit 28739b6daa630e35dd924278aec35299dd468740
Author: Aurélien Gâteau <aurelien gateau canonical com>
Date:   Fri Jan 29 06:38:45 2010 -0500

    Print warning when using icon_data hint
    
    Since it is deprecated.

 src/daemon/daemon.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c
index 85621df..7443c72 100644
--- a/src/daemon/daemon.c
+++ b/src/daemon/daemon.c
@@ -1348,6 +1348,7 @@ notify_daemon_notify_handler (NotifyDaemon *daemon,
         } else if (*icon != '\0') {
                 pixbuf = _notify_daemon_pixbuf_from_path (icon);
         } else if ((data = (GValue *) g_hash_table_lookup (hints, "icon_data"))) {
+                g_warning("\"icon_data\" hint is deprecated, please use \"image_data\" instead");
                 pixbuf = _notify_daemon_pixbuf_from_data_hint (data);
         }
 



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