shims: Add disconnect_signal.

It is necessary when adding many wibars.
This commit is contained in:
Emmanuel Lepage Vallee 2019-03-08 13:40:21 -05:00
parent 7997549067
commit 936040a283
1 changed files with 6 additions and 1 deletions

View File

@ -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