From 936040a2834debfde065ed8d90d660a5cb96125a Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Fri, 8 Mar 2019 13:40:21 -0500 Subject: [PATCH] shims: Add disconnect_signal. It is necessary when adding many wibars. --- tests/examples/shims/awesome.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/examples/shims/awesome.lua b/tests/examples/shims/awesome.lua index 4d8f03237..8d1616d9a 100644 --- a/tests/examples/shims/awesome.lua +++ b/tests/examples/shims/awesome.lua @@ -13,12 +13,17 @@ local function _shim_fake_class() __newindex = function()end, } - obj._connect_signal = obj.connect_signal + obj._connect_signal = obj.connect_signal + obj._disconnect_signal = obj.disconnect_signal function obj.connect_signal(name, func) return obj._connect_signal(obj, name, func) end + function obj.disconnect_signal(name, func) + return obj._disconnect_signal(obj, name, func) + end + function obj.set_index_miss_handler(handler) meta.__index = handler end