diff options
author | kajzer <[email protected]> | 2016-09-02 16:12:01 +0200 |
---|---|---|
committer | kajzer <[email protected]> | 2016-09-02 16:12:01 +0200 |
commit | 23153c2e82294cda4f3f7db2053186da8581e19a (patch) | |
tree | 233731ccb80c931fff80d38f4e49970dc716c76b /src/daemon | |
parent | f95d699d693d3781a15c90a04bc63ad62897eb48 (diff) | |
download | mate-notification-daemon-23153c2e82294cda4f3f7db2053186da8581e19a.tar.bz2 mate-notification-daemon-23153c2e82294cda4f3f7db2053186da8581e19a.tar.xz |
Add support for GNotification
Diffstat (limited to 'src/daemon')
-rw-r--r-- | src/daemon/daemon.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c index 653b27d..eb2fe9b 100644 --- a/src/daemon/daemon.c +++ b/src/daemon/daemon.c @@ -1416,6 +1416,10 @@ gboolean notify_daemon_notify_handler(NotifyDaemon* daemon, const char* app_name { pixbuf = _notify_daemon_pixbuf_from_data_hint (data); } + else if ((data = (GValue *) g_hash_table_lookup (hints, "image-data"))) + { + pixbuf = _notify_daemon_pixbuf_from_data_hint (data); + } else if ((data = (GValue *) g_hash_table_lookup (hints, "image_path"))) { if (G_VALUE_HOLDS_STRING (data)) @@ -1428,6 +1432,18 @@ gboolean notify_daemon_notify_handler(NotifyDaemon* daemon, const char* app_name g_warning ("notify_daemon_notify_handler expected image_path hint to be of type string"); } } + else if ((data = (GValue *) g_hash_table_lookup (hints, "image-path"))) + { + if (G_VALUE_HOLDS_STRING (data)) + { + const char *path = g_value_get_string (data); + pixbuf = _notify_daemon_pixbuf_from_path (path); + } + else + { + g_warning ("notify_daemon_notify_handler expected image-path hint to be of type string"); + } + } else if (*icon != '\0') { pixbuf = _notify_daemon_pixbuf_from_path (icon); |