diff options
Diffstat (limited to 'source/view.c')
-rw-r--r-- | source/view.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/source/view.c b/source/view.c index fc5a4fe6..6d2b7aea 100644 --- a/source/view.c +++ b/source/view.c @@ -906,19 +906,11 @@ static void update_callback ( textbox *t, unsigned int index, void *udata, TextB else{ list = pango_attr_list_new (); } - int icon_height = textbox_get_font_height ( t ); + int icon_height = textbox_get_font_height ( t ); - const gchar *visible_text = textbox_get_visible_text ( t ); - const gchar *icon_placeholder = g_utf8_strchr ( visible_text, -1, 0xFFFC ); - if ( icon_placeholder != NULL ) { - cairo_surface_t *icon = mode_get_icon ( state->sw, state->line_map[index], icon_height ); - textbox_icon ( t, icon ); + cairo_surface_t *icon = mode_get_icon ( state->sw, state->line_map[index], icon_height ); + textbox_icon ( t, icon ); - textbox_set_icon_index ( t, g_utf8_pointer_to_offset ( visible_text, icon_placeholder ) ); - } - else { - textbox_set_icon_index ( t, -1 ); - } if ( state->tokens && config.show_match ) { ThemeHighlight th = { HL_BOLD | HL_UNDERLINE, { 0.0, 0.0, 0.0, 0.0 } }; th = rofi_theme_get_highlight ( WIDGET ( t ), "highlight", th ); |