diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-01-08 16:49:46 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-01-08 16:49:46 +0100 |
commit | ce2cf6b2d991450439ede056d8f89bcf788ee410 (patch) | |
tree | 1e5f5842804fa4e448cf36334df5941af0b1578a /source/view.c | |
parent | c7e860bb55e3d0173be5174607f84555f0632aa5 (diff) |
Make error dialog widget layout match normal one
Diffstat (limited to 'source/view.c')
-rw-r--r-- | source/view.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/view.c b/source/view.c index e2f71513..f2d3233a 100644 --- a/source/view.c +++ b/source/view.c @@ -1423,7 +1423,7 @@ void rofi_view_itterrate ( RofiViewState *state, xcb_generic_event_t *ev, xkb_st static int rofi_view_calculate_height ( RofiViewState *state ) { unsigned int height = 0; - if ( config.menu_lines == 0 || config.fullscreen == TRUE ) { + if ( listview_get_num_lines ( state->list_view ) == 0 || config.fullscreen == TRUE ) { height = CacheState.mon.h; return height; } @@ -1587,9 +1587,9 @@ int rofi_view_error_dialog ( const char *msg, int markup ) state->finalize = process_result; state->main_window = container_create ( "window" ); - state->main_box = box_create ( "window.mainbox", BOX_VERTICAL); + state->main_box = box_create ( "window.mainbox.message.box", BOX_VERTICAL); container_add ( state->main_window, WIDGET ( state->main_box ) ); - state->text = textbox_create ( "window.mainbox.message", ( TB_AUTOHEIGHT | TB_WRAP ) + ( ( markup ) ? TB_MARKUP : 0 ), + state->text = textbox_create ( "window.mainbox.message.textbox", ( TB_AUTOHEIGHT | TB_WRAP ) + ( ( markup ) ? TB_MARKUP : 0 ), NORMAL, ( msg != NULL ) ? msg : "" ); box_add ( state->main_box, WIDGET ( state->text ), TRUE, 1 ); |