awesome/tests/examples/wibox
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
..
container Fix whitespace warnings reported by luacheck (#1229) 2016-11-21 22:38:23 +01:00
layout Fix whitespace warnings reported by luacheck (#1229) 2016-11-21 22:38:23 +01:00
widget Make the piechart deterministic (#1258) 2016-12-07 20:20:09 +01:00
template.lua tests/examples: Move common template code into a common file (#993) 2016-07-09 19:03:49 +02:00