awesome/tests/examples/wibox/widget/defaults
Uli Schlachter 9f2c4719ed Make the piechart deterministic (#1258)
Previously, the API to set the data that should be displayed was
:set_data(t) where t is a table. This table has the labels to use as its
keys and the numbers as its values. With this API, it was not possible
to influence the order in which the "pie pieces" were drawn.

This commit adds and uses a new API called :set_data_list(t). Here, t is
a table with integer keys and tables as values, thus one can iterate
over this with ipairs() and the order is well-defined. The tables used
as values contain the label as their first entry and the number as their
second entry.

Fixes: https://github.com/awesomeWM/awesome/issues/1249
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-12-07 20:20:09 +01:00
..
checkbox.lua tests: Test the checkbox widget. 2016-09-24 14:45:09 -04:00
graph.lua doc: Add a graph widget default screenshot 2016-05-30 18:00:58 -04:00
imagebox.lua doc: Add an imagebox widget default screenshot 2016-05-30 18:00:59 -04:00
piechart.lua Make the piechart deterministic (#1258) 2016-12-07 20:20:09 +01:00
progressbar.lua tests: Use the new progressbar features in the default test. 2016-09-26 01:18:09 -04:00
slider.lua tests: Test the slider widget. 2016-10-12 02:24:47 -04:00
textbox.lua doc: Add a textbox widget default screenshot 2016-05-30 18:00:58 -04:00