mirror of https://github.com/davatorium/rofi.git
Indent.
This commit is contained in:
parent
c32e18b600
commit
101c63cde6
|
@ -121,6 +121,7 @@ SwitcherMode dmenu_switcher_dialog ( char **input )
|
||||||
} else if ( n == -3 && *input != NULL && *input[0] != '\0' ) {
|
} else if ( n == -3 && *input != NULL && *input[0] != '\0' ) {
|
||||||
fputs( *input, stdout );
|
fputs( *input, stdout );
|
||||||
}
|
}
|
||||||
|
|
||||||
for ( unsigned int i=0; list[i] != NULL; i++ ) {
|
for ( unsigned int i=0; list[i] != NULL; i++ ) {
|
||||||
free( list[i] );
|
free( list[i] );
|
||||||
}
|
}
|
||||||
|
|
|
@ -112,7 +112,7 @@ void textbox_font( textbox *tb, char *font, char *fg, char *bg )
|
||||||
// outer code may need line height, width, etc
|
// outer code may need line height, width, etc
|
||||||
void textbox_extents( textbox *tb )
|
void textbox_extents( textbox *tb )
|
||||||
{
|
{
|
||||||
int length = strlen( tb->text ) + strlen( tb->prompt) +1;
|
int length = strlen( tb->text ) + strlen( tb->prompt ) +1;
|
||||||
char *line = alloca( length + 1 );
|
char *line = alloca( length + 1 );
|
||||||
sprintf( line, "%s %s", tb->prompt, tb->text );
|
sprintf( line, "%s %s", tb->prompt, tb->text );
|
||||||
XftTextExtents8( display, tb->font, ( unsigned char* )line, length, &tb->extents );
|
XftTextExtents8( display, tb->font, ( unsigned char* )line, length, &tb->extents );
|
||||||
|
|
Loading…
Reference in New Issue