From 11ef560c5c5025463c7870851b4cebf6ff1ae52f Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Thu, 11 Jul 2019 00:06:24 -0400 Subject: [PATCH] naughty: Un-document naughty.notification.replaces_id. It doesn't and cannot exists within `naughty.notification()` since it is a constructor and that's way too late. Ref #2816 --- lib/naughty/notification.lua | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/naughty/notification.lua b/lib/naughty/notification.lua index 64c9e184..3b0da1f4 100644 --- a/lib/naughty/notification.lua +++ b/lib/naughty/notification.lua @@ -235,10 +235,6 @@ local notification = {} -- @property preset -- @param table ---- Replace the notification with the given ID. --- @property replaces_id --- @param number - --- Function that will be called with all arguments. -- The notification will only be displayed if the function returns true. -- Note: this function is only relevant to notifications sent via dbus. @@ -394,8 +390,8 @@ local properties = { "width" , "font" , "icon" , "icon_size" , "fg" , "bg" , "height" , "border_color" , "shape" , "opacity" , "margin" , "ignore_suspend", - "destroy" , "preset" , "callback", "replaces_id" , - "actions" , "run" , "id" , "ignore" , + "destroy" , "preset" , "callback", "actions" , + "run" , "id" , "ignore", } for _, prop in ipairs(properties) do @@ -496,7 +492,6 @@ end -- @tparam[opt] table args.preset Table with any of the above parameters. -- Note: Any parameters specified directly in args will override ones defined -- in the preset. --- @tparam[opt] int args.replaces_id Replace the notification with the given ID. -- @tparam[opt] func args.callback Function that will be called with all arguments. -- The notification will only be displayed if the function returns true. -- Note: this function is only relevant to notifications sent via dbus.