1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-11 13:50:48 -05:00

[Listview] Add more debug output for debugging.

This commit is contained in:
Dave Davenport 2019-12-29 21:26:41 +01:00
parent de89be5c95
commit f1a90c5d0c

View file

@ -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 )