Rename some API functions
This commit is contained in:
parent
34841eddf3
commit
7820d88a30
4
API.md
4
API.md
|
@ -38,7 +38,7 @@ i3.new_tab {
|
||||||
|
|
||||||
Updates the current formspec. `extra_formspec` adds an additional formspec string.
|
Updates the current formspec. `extra_formspec` adds an additional formspec string.
|
||||||
|
|
||||||
#### `i3.delete_tab(tabname)`
|
#### `i3.remove_tab(tabname)`
|
||||||
|
|
||||||
Deletes a tab by name.
|
Deletes a tab by name.
|
||||||
|
|
||||||
|
@ -178,7 +178,7 @@ end)
|
||||||
|
|
||||||
Removes all recipe filters and adds a new one.
|
Removes all recipe filters and adds a new one.
|
||||||
|
|
||||||
#### `i3.delete_recipe_filter(name)`
|
#### `i3.remove_recipe_filter(name)`
|
||||||
|
|
||||||
Removes the recipe filter with the given `name`.
|
Removes the recipe filter with the given `name`.
|
||||||
|
|
||||||
|
|
6
init.lua
6
init.lua
|
@ -426,7 +426,7 @@ function i3.set_recipe_filter(name, f)
|
||||||
recipe_filters = {[name] = f}
|
recipe_filters = {[name] = f}
|
||||||
end
|
end
|
||||||
|
|
||||||
function i3.delete_recipe_filter(name)
|
function i3.remove_recipe_filter(name)
|
||||||
recipe_filters[name] = nil
|
recipe_filters[name] = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -2224,9 +2224,9 @@ function i3.get_tabs()
|
||||||
return tabs
|
return tabs
|
||||||
end
|
end
|
||||||
|
|
||||||
function i3.delete_tab(tabname)
|
function i3.remove_tab(tabname)
|
||||||
if not true_str(tabname) then
|
if not true_str(tabname) then
|
||||||
return err "i3.delete_tab: tab name missing"
|
return err "i3.remove_tab: tab name missing"
|
||||||
end
|
end
|
||||||
|
|
||||||
for i, def in ipairs(tabs) do
|
for i, def in ipairs(tabs) do
|
||||||
|
|
Ŝarĝante…
Reference in New Issue