diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-05-24 08:50:45 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-05-24 08:50:45 +0200 |
commit | da092c53ace4ca375d7685d867afc1761e35e377 (patch) | |
tree | 6c0988a7b5f98107e1d0782fd36ff26f58d5b623 /source/view.c | |
parent | 7639153ad6d6061348f695b601825b7e12a59599 (diff) |
[BarView] Use exact match for entry width.
Diffstat (limited to 'source/view.c')
-rw-r--r-- | source/view.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/view.c b/source/view.c index ae62abc8..6c44c289 100644 --- a/source/view.c +++ b/source/view.c @@ -1667,10 +1667,10 @@ RofiViewState *rofi_view_create ( Mode *sw, listview_set_num_lines ( state->list_view, lines ); listview_set_max_lines ( state->list_view, state->num_lines ); - if ( rofi_theme_get_boolean ( state->main_window, "listview-in-inputbar", FALSE)){ + if ( rofi_theme_get_boolean ( WIDGET ( state->main_window ), "listview-in-inputbar", FALSE)){ box_add ( state->input_bar, WIDGET ( state->list_view ), TRUE, 3 ); - Distance d = rofi_theme_get_distance ( WIDGET ( state->text ) , "width", 150); + Distance d = rofi_theme_get_distance_exact ( WIDGET ( state->text ) , "width", 150); state->text->widget.expand = FALSE; widget_resize ( WIDGET( state->text ), distance_get_pixel ( d, ORIENTATION_HORIZONTAL ), -1); } else { |