awesome/tests/examples
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
..
awful Make the resize_to_mouse example test deterministic (#1250) 2016-12-02 21:23:36 +01:00
gears/shape Fix whitespace warnings reported by luacheck (#1229) 2016-11-21 22:38:23 +01:00
shims shims: Add support the new .data property 2016-09-30 11:11:55 +02:00
text Remove a case where a pointer appeared in text tests (#1251) 2016-12-02 20:30:10 +01:00
wibox Make the piechart deterministic (#1258) 2016-12-07 20:20:09 +01:00
CMakeLists.txt Improve messages with tests/examples/CMakeLists.txt 2016-10-01 17:24:44 +02:00