Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions LuaGObject/class.lua
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,7 @@ function class.class_mt:derive(typename, ifaces)
iface_addr = core.record.query(iface_addr, "addr") or iface_addr
local iface_struct = core.record.new(iface._class, iface_addr)

-- Iterate through all interface overrides and assign to the
-- virtual callbacks.
-- Iterate through all interface overrides and assign to the virtual callbacks.
for name, addr in pairs(override) do
iface_struct[name] = addr
end
Expand All @@ -382,8 +381,7 @@ end

class.derived_mt = class.class_mt:clone('derived', {})

-- Support for 'priv' pseudomember, holding table with user
-- implementation data.
-- Support for 'priv' pseudomember, holding table with user implementation data.
function class.derived_mt:_element(instance, symbol)
-- Special handling of 'priv' attribute.
if instance and symbol == 'priv' then return symbol, '_priv' end
Expand Down
2 changes: 1 addition & 1 deletion LuaGObject/component.lua
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ function component.create(info, mt, name)
local gtype
if core.gi.isinfo(info) then
gtype = info.gtype
name = info.name
name = info.fullname
else
gtype = info and core.gtype(info)
end
Expand Down
Loading