diff options
author | Dave Davenport <qball@gmpclient.org> | 2019-12-29 21:26:41 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2019-12-29 21:26:41 +0100 |
commit | f1a90c5d0c099853c2c1cb0ddc677f9e9a4bc2d0 (patch) | |
tree | a67ad40a509c6a1d7ea3ef7b23322ec232d8a7b8 | |
parent | de89be5c952fdef72f4a04b2a01596ca1f3390bb (diff) |
[Listview] Add more debug output for debugging.
-rw-r--r-- | source/widgets/listview.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/widgets/listview.c b/source/widgets/listview.c index 0c072b3c..9c2efdff 100644 --- a/source/widgets/listview.c +++ b/source/widgets/listview.c @@ -37,6 +37,8 @@ #include "settings.h" #include "theme.h" +#include "timings.h" + /** Default spacing between the elements in the listview. */ #define DEFAULT_SPACING 2 @@ -516,10 +518,14 @@ void listview_set_num_elements ( listview *lv, unsigned int rows ) if ( lv == NULL ) { return; } + TICK_N(__FUNCTION__); lv->req_elements = rows; listview_set_selected ( lv, lv->selected ); + TICK_N("Set selected"); listview_recompute_elements ( lv ); + TICK_N("recompute elements"); widget_queue_redraw ( WIDGET ( lv ) ); + TICK_N("queue redraw"); } unsigned int listview_get_selected ( listview *lv ) |