summaryrefslogtreecommitdiff
path: root/src/daemon
diff options
context:
space:
mode:
authorIkey Doherty <[email protected]>2016-11-16 17:32:40 +0000
committermonsta <[email protected]>2017-02-14 17:03:17 +0400
commita6ff22d59d93ce06ea6752351f10873ace4a4627 (patch)
tree4672d0c1c51a0f0c79a6d8d41e2c264d93d080ca /src/daemon
parentbeef437387102e6bcfa2ecc088993c46452bf25e (diff)
downloadmate-notification-daemon-a6ff22d59d93ce06ea6752351f10873ace4a4627.tar.bz2
mate-notification-daemon-a6ff22d59d93ce06ea6752351f10873ace4a4627.tar.xz
daemon: Export the "action-icons" capability to clients
The freedesktop specification states that clients may opt to use named icons instead of textual labels on action buttons. In this instance, the icon name is passed as the 'key' (actions[i+1]) element in the actions data passed to the daemon. For themes to render the icon, they should check the hints passed by the client for a boolean value of "action-icons", and if it is set they should then create an image button based on the key, and not the label. Many applications now make use of action-icons, such as media players, to provide self describing actions with well known icon names, such as playback controls. In the absence of support for action-icons they fallback to less useful buttons and generally less actions. Signed-off-by: Ikey Doherty <[email protected]>
Diffstat (limited to 'src/daemon')
-rw-r--r--src/daemon/daemon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c
index eb2fe9b..149025a 100644
--- a/src/daemon/daemon.c
+++ b/src/daemon/daemon.c
@@ -1610,6 +1610,7 @@ gboolean notify_daemon_get_capabilities(NotifyDaemon* daemon, char*** caps)
{
GPtrArray* a = g_ptr_array_new ();
g_ptr_array_add (a, g_strdup ("actions"));
+ g_ptr_array_add (a, g_strdup ("action-icons"));
g_ptr_array_add (a, g_strdup ("body"));
g_ptr_array_add (a, g_strdup ("body-hyperlinks"));
g_ptr_array_add (a, g_strdup ("body-markup"));