awful.tooltip docs: replace references to undefined variable 'K' with 'myclock'
Most probably, the original author chose to use 'K' first, switched to 'myclock' later, and forgot to update remaining occurrences of 'K'. Signed-off-by: Anurag Priyam <anurag08priyam@gmail.com> Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
6f61bde6f2
commit
ba7f7c4488
|
@ -24,7 +24,7 @@ local ipairs = ipairs
|
||||||
-- <code>
|
-- <code>
|
||||||
-- myclock = awful.widget.textclock({}, "%T", 1)<br/>
|
-- myclock = awful.widget.textclock({}, "%T", 1)<br/>
|
||||||
-- myclock_t = awful.tooltip({<br/>
|
-- myclock_t = awful.tooltip({<br/>
|
||||||
-- objects = { K },<br/>
|
-- objects = { myclock },<br/>
|
||||||
-- timer_function = function()<br/>
|
-- timer_function = function()<br/>
|
||||||
-- return os.date("Today is %A %B %d %Y\nThe time is %T")<br/>
|
-- return os.date("Today is %A %B %d %Y\nThe time is %T")<br/>
|
||||||
-- end,<br/>
|
-- end,<br/>
|
||||||
|
@ -36,7 +36,7 @@ local ipairs = ipairs
|
||||||
-- myclock_t:add_to_object(obj1)<br/>
|
-- myclock_t:add_to_object(obj1)<br/>
|
||||||
-- myclock_t:add_to_object(obj2)<br/>
|
-- myclock_t:add_to_object(obj2)<br/>
|
||||||
-- </code>
|
-- </code>
|
||||||
-- Now the same tooltip is attached to <code>K</code>, <code>obj1</code>,
|
-- Now the same tooltip is attached to <code>myclock</code>, <code>obj1</code>,
|
||||||
-- <code>obj2</code>.<br/>
|
-- <code>obj2</code>.<br/>
|
||||||
-- </p>
|
-- </p>
|
||||||
-- <p>How to remove tooltip from many objects?<br/>
|
-- <p>How to remove tooltip from many objects?<br/>
|
||||||
|
@ -44,7 +44,7 @@ local ipairs = ipairs
|
||||||
-- myclock_t:remove_from_object(obj1)<br/>
|
-- myclock_t:remove_from_object(obj1)<br/>
|
||||||
-- myclock_t:remove_from_object(obj2)<br/>
|
-- myclock_t:remove_from_object(obj2)<br/>
|
||||||
-- </code>
|
-- </code>
|
||||||
-- Now the same tooltip is only attached to <code>K</code>.<br/>
|
-- Now the same tooltip is only attached to <code>myclock</code>.<br/>
|
||||||
-- </p>
|
-- </p>
|
||||||
module("awful.tooltip")
|
module("awful.tooltip")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue