mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-25 13:55:34 -05:00
Indenting
This commit is contained in:
parent
ef98b3928a
commit
cc5db086bf
2 changed files with 6 additions and 7 deletions
|
@ -111,8 +111,7 @@ void parse_keys_abe ( void )
|
||||||
abe[iter].num_bindings = 0;
|
abe[iter].num_bindings = 0;
|
||||||
|
|
||||||
// Iter over bindings.
|
// Iter over bindings.
|
||||||
for ( char *entry = strtok_r ( keystr, ",", &sp ); entry != NULL; entry = strtok_r ( NULL, ",", &sp ) )
|
for ( char *entry = strtok_r ( keystr, ",", &sp ); entry != NULL; entry = strtok_r ( NULL, ",", &sp ) ) {
|
||||||
{
|
|
||||||
abe[iter].kb = g_realloc ( abe[iter].kb, ( abe[iter].num_bindings + 1 ) * sizeof ( KeyBinding ) );
|
abe[iter].kb = g_realloc ( abe[iter].kb, ( abe[iter].num_bindings + 1 ) * sizeof ( KeyBinding ) );
|
||||||
KeyBinding *kb = &( abe[iter].kb[abe[iter].num_bindings] );
|
KeyBinding *kb = &( abe[iter].kb[abe[iter].num_bindings] );
|
||||||
x11_parse_key ( entry, &( kb->modmask ), &( kb->keysym ) );
|
x11_parse_key ( entry, &( kb->modmask ), &( kb->keysym ) );
|
||||||
|
|
|
@ -438,10 +438,10 @@ void x11_parse_key ( char *combo, unsigned int *mod, xkb_keysym_t *key )
|
||||||
i--;
|
i--;
|
||||||
}
|
}
|
||||||
xkb_keysym_t sym = XKB_KEY_NoSymbol;
|
xkb_keysym_t sym = XKB_KEY_NoSymbol;
|
||||||
if ( ( modmask&x11_mod_masks[X11MOD_SHIFT] ) != 0 ){
|
if ( ( modmask & x11_mod_masks[X11MOD_SHIFT] ) != 0 ) {
|
||||||
gchar * str = g_utf8_next_char ( combo + i );
|
gchar * str = g_utf8_next_char ( combo + i );
|
||||||
// If it is a single char, we make a capital out of it.
|
// If it is a single char, we make a capital out of it.
|
||||||
if ( str != NULL && *str == '\0'){
|
if ( str != NULL && *str == '\0' ) {
|
||||||
int l = 0;
|
int l = 0;
|
||||||
char buff[8];
|
char buff[8];
|
||||||
gunichar v = g_utf8_get_char ( combo + i );
|
gunichar v = g_utf8_get_char ( combo + i );
|
||||||
|
|
Loading…
Reference in a new issue