diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-03-17 14:07:11 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-03-17 14:07:11 +0100 |
commit | 50477a0b99e893da8858fad0e0318b8d4e63b3a5 (patch) | |
tree | 218ff868618c6e36a387015b188ae6d10887bf2f /source/view.c | |
parent | dfeb5940d4c447bb5c71104726ab416a04e6bfb4 (diff) |
[Keys] Cleanup view a bit.
Diffstat (limited to 'source/view.c')
-rw-r--r-- | source/view.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/view.c b/source/view.c index 63d269b5..8bf0c149 100644 --- a/source/view.c +++ b/source/view.c @@ -879,8 +879,8 @@ static void update_callback ( textbox *t, unsigned int index, void *udata, TextB RofiViewState *state = (RofiViewState *) udata; if ( full ) { GList *add_list = NULL; - int fstate = 0; - char *text = mode_get_display_value ( state->sw, state->line_map[index], &fstate, &add_list, TRUE ); + int fstate = 0; + char *text = mode_get_display_value ( state->sw, state->line_map[index], &fstate, &add_list, TRUE ); type |= fstate; textbox_font ( t, type ); // Move into list view. @@ -898,12 +898,12 @@ static void update_callback ( textbox *t, unsigned int index, void *udata, TextB th = rofi_theme_get_highlight ( WIDGET ( t ), "highlight", th ); helper_token_match_get_pango_attr ( th, state->tokens, textbox_get_visible_text ( t ), list ); } - for ( GList *iter = g_list_first ( add_list ); iter != NULL ; iter = g_list_next(iter) ) { - pango_attr_list_insert ( list, (PangoAttribute *)(iter->data)); + for ( GList *iter = g_list_first ( add_list ); iter != NULL; iter = g_list_next ( iter ) ) { + pango_attr_list_insert ( list, (PangoAttribute *) ( iter->data ) ); } textbox_set_pango_attributes ( t, list ); pango_attr_list_unref ( list ); - g_list_free( add_list); + g_list_free ( add_list ); g_free ( text ); } else { |