Adding more props to the app table that this is obslete now, it's better to just use the app.prop_name syntax
This commit is contained in:
parent
2649d0ea0c
commit
582b3c4db8
|
@ -153,23 +153,6 @@ local function app_widget(self, app)
|
||||||
end)
|
end)
|
||||||
else
|
else
|
||||||
widget = self.app_template(app)
|
widget = self.app_template(app)
|
||||||
|
|
||||||
local icon = widget:get_children_by_id("icon_role")[1]
|
|
||||||
if icon then
|
|
||||||
icon.image = app.icon
|
|
||||||
end
|
|
||||||
local name = widget:get_children_by_id("name_role")[1]
|
|
||||||
if name then
|
|
||||||
name.text = app.name
|
|
||||||
end
|
|
||||||
local generic_name = widget:get_children_by_id("generic_name_role")[1]
|
|
||||||
if generic_name then
|
|
||||||
generic_name.text = app.generic_name
|
|
||||||
end
|
|
||||||
local command = widget:get_children_by_id("command_role")[1]
|
|
||||||
if command then
|
|
||||||
command.text = app.executable
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
widget:connect_signal("button::press", function(app, _, __, button)
|
widget:connect_signal("button::press", function(app, _, __, button)
|
||||||
|
|
Loading…
Reference in New Issue