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:
parent
de89be5c95
commit
f1a90c5d0c
1 changed files with 6 additions and 0 deletions
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue