Improve docs for emit_signal_recursive (#1998)
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
ef04fa688e
commit
12bb7f5a9e
|
@ -162,14 +162,16 @@ end
|
||||||
-- forward the signal. This is useful to track signals when there is a dynamic
|
-- forward the signal. This is useful to track signals when there is a dynamic
|
||||||
-- set of containers and layouts wrapping the widget.
|
-- set of containers and layouts wrapping the widget.
|
||||||
--
|
--
|
||||||
-- Note that this function has two flaws:
|
-- Note that this function has some flaws:
|
||||||
--
|
--
|
||||||
-- 1. The signal is only forwarded once the widget tree has been built. This
|
-- 1. The signal is only forwarded once the widget tree has been built. This
|
||||||
-- happens after all currently scheduled functions have been executed.
|
-- happens after all currently scheduled functions have been executed.
|
||||||
-- Therefore, it will not start to work right away.
|
-- Therefore, it will not start to work right away.
|
||||||
-- 2. In case the widget is present multiple times in a single widget tree,
|
-- 2. In case the widget is present multiple times in a single widget tree,
|
||||||
-- this function will also forward the signal multiple time (one per upward
|
-- this function will also forward the signal multiple times (once per upward
|
||||||
-- tree path).
|
-- tree path).
|
||||||
|
-- 3. If the widget is removed from the widget tree, the signal is still
|
||||||
|
-- forwarded for some time, similar to the first case.
|
||||||
--
|
--
|
||||||
-- @tparam string signal_name
|
-- @tparam string signal_name
|
||||||
-- @param ... Other arguments
|
-- @param ... Other arguments
|
||||||
|
|
Loading…
Reference in New Issue