From 90396f33e79f34cdaef28cd2f49014187610484b Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Sat, 8 Jun 2019 18:28:39 -0400 Subject: [PATCH] doc: Tag the callback properties as deprecated. They exists to comply with the old `naughty.notify` API. They should not be used for new code. --- lib/naughty/notification.lua | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/naughty/notification.lua b/lib/naughty/notification.lua index e9fb8d6c..dbdb9429 100644 --- a/lib/naughty/notification.lua +++ b/lib/naughty/notification.lua @@ -214,12 +214,20 @@ local notification = {} -- @see shape --- Function to run on left click. --- @property run +-- +-- Use the signals rather than this. +-- +-- @deprecatedproperty run -- @param function +-- @see destroyed --- Function to run when notification is destroyed. --- @property destroy +-- +-- Use the signals rather than this. +-- +-- @deprecatedproperty destroy -- @param function +-- @see destroyed --- Table with any of the above parameters. -- args will override ones defined