diff --git a/lib/awful/widget/graph.lua.in b/lib/awful/widget/graph.lua.in index 7ef756b9..b4997ca9 100644 --- a/lib/awful/widget/graph.lua.in +++ b/lib/awful/widget/graph.lua.in @@ -171,7 +171,7 @@ end --- Set the graph height. -- @param graph The graph. -- @param height The height to set. -local function set_height(graph, height) +function set_height(graph, height) if height >= 5 then data[graph].height = height update(graph) @@ -182,7 +182,7 @@ end --- Set the graph width. -- @param graph The graph. -- @param width The width to set. -local function set_width(graph, width) +function set_width(graph, width) if width >= 5 then data[graph].width = width update(graph) diff --git a/lib/awful/widget/progressbar.lua.in b/lib/awful/widget/progressbar.lua.in index 75111e41..931924e5 100644 --- a/lib/awful/widget/progressbar.lua.in +++ b/lib/awful/widget/progressbar.lua.in @@ -113,7 +113,7 @@ end -- Set the progressbar value. -- @param pbar The progress bar. -- @param value The progress bar value between 0 and 1. -local function set_value(pbar, value) +function set_value(pbar, value) local value = value or 0 data[pbar].value = math.min(1, math.max(0, value)) return pbar @@ -122,7 +122,7 @@ end --- Set the progressbar height. -- @param progressbar The progressbar. -- @param height The height to set. -local function set_height(progressbar, height) +function set_height(progressbar, height) if height >= 5 then data[progressbar].height = height update(progressbar) @@ -133,7 +133,7 @@ end --- Set the progressbar width. -- @param progressbar The progressbar. -- @param width The width to set. -local function set_width(progressbar, width) +function set_width(progressbar, width) if width >= 5 then data[progressbar].width = width update(progressbar)