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

Fix indenting view.c.

This commit is contained in:
Dave Davenport 2016-09-17 18:35:03 +02:00
parent 3e272b2b00
commit 6191662ccf

View file

@ -60,7 +60,7 @@
#include "view.h"
#include "view-internal.h"
#define LOG_DOMAIN "View"
#define LOG_DOMAIN "View"
#include "xcb.h"
@ -93,7 +93,7 @@ struct
.draw = NULL,
.flags = MENU_NORMAL,
.views = G_QUEUE_INIT,
.idle_timeout = 0,
.idle_timeout = 0,
};
static char * get_matching_state ( void )
@ -1358,13 +1358,13 @@ static void rofi_view_refilter ( RofiViewState *state )
// Calculate the number or rows. We do this by getting the num_lines rounded up to X columns
// (num elements is better name) then dividing by columns.
unsigned int max_rows = MIN ( config.menu_lines, (unsigned int) ( ( state->filtered_lines + ( columns -
state->filtered_lines % columns ) % columns ) / ( columns ) ) );
state->filtered_lines % columns ) % columns ) / ( columns ) ) );
if ( max_rows != state->max_rows ) {
rofi_view_calculate_height ( state, max_rows );
rofi_view_resize ( state );
rofi_view_calculate_window_position ( state );
rofi_view_window_update_size ( state );
g_log ( LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "Resize based on re-filter");
g_log ( LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "Resize based on re-filter" );
}
}
state->refilter = FALSE;
@ -1943,7 +1943,7 @@ void rofi_view_hide ( void )
void rofi_view_cleanup ()
{
if ( CacheState.idle_timeout > 0 ){
if ( CacheState.idle_timeout > 0 ) {
g_source_remove ( CacheState.idle_timeout );
CacheState.idle_timeout = 0;
}