diff --git a/doc/rofi-theme.5 b/doc/rofi-theme.5 index 1cc74c94..567dd5f3 100644 --- a/doc/rofi-theme.5 +++ b/doc/rofi-theme.5 @@ -845,6 +845,8 @@ The current widgets available in \fBrofi\fP: \fB\fCscrollbar\fR: the listview scrollbar .IP \(bu 2 \fB\fCelement\fR: a box in the listview holding the entries + +.RS .IP \(bu 2 \fB\fCelement\-icon\fR: the widget in the listview's entry showing the (optional) icon .IP \(bu 2 @@ -852,6 +854,8 @@ The current widgets available in \fBrofi\fP: .IP \(bu 2 \fB\fCelement\-text\fR: the widget in the listview's entry showing the text. +.RE + .RE .IP \(bu 2 \fB\fCmode\-switcher\fR: the main horizontal @box packing the buttons. diff --git a/doc/rofi-theme.5.markdown b/doc/rofi-theme.5.markdown index 86086824..08c5575e 100644 --- a/doc/rofi-theme.5.markdown +++ b/doc/rofi-theme.5.markdown @@ -517,9 +517,9 @@ The current widgets available in **rofi**: * `listview`: The listview. * `scrollbar`: the listview scrollbar * `element`: a box in the listview holding the entries - * `element-icon`: the widget in the listview's entry showing the (optional) icon - * `element-index`: the widget in the listview's entry keybindable index (1,2,3..0) - * `element-text`: the widget in the listview's entry showing the text. + * `element-icon`: the widget in the listview's entry showing the (optional) icon + * `element-index`: the widget in the listview's entry keybindable index (1,2,3..0) + * `element-text`: the widget in the listview's entry showing the text. * `mode-switcher`: the main horizontal @box packing the buttons. * `button`: the buttons @textbox for each mode * `message`: The container holding the textbox. diff --git a/source/widgets/listview.c b/source/widgets/listview.c index ced5d8f2..aaaaa497 100644 --- a/source/widgets/listview.c +++ b/source/widgets/listview.c @@ -424,7 +424,7 @@ static void listview_draw ( widget *wid, cairo_t *draw ) } unsigned int element_width = ( width ) / lv->cur_columns; - int d = lv->widget.w - (element_width+spacing_hori)*(lv->cur_columns-1)-element_width; + int d = width - (element_width+spacing_hori)*(lv->cur_columns-1)-element_width; if ( lv->cur_columns > 1) { int diff = d/(lv->cur_columns-1);