diff options
author | Dave Davenport <qball@gmpclient.org> | 2018-06-12 09:46:24 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2018-06-12 09:46:24 +0200 |
commit | d4cfb5bb4ba94199871475c3faea015670a53fda (patch) | |
tree | 2c254e624933313e37b264fb55c3bfc934331f01 /source/view.c | |
parent | c96ebfc2de1fc0fd7f78214dc9bce6996edaeae4 (diff) |
Fix crash in error dialog and tests.
Diffstat (limited to 'source/view.c')
-rw-r--r-- | source/view.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/source/view.c b/source/view.c index 721d065b..7a17404e 100644 --- a/source/view.c +++ b/source/view.c @@ -935,11 +935,6 @@ static void update_callback ( textbox *t, unsigned int index, void *udata, TextB cairo_surface_t *icon = mode_get_icon ( state->sw, state->line_map[index], icon_height ); textbox_icon ( t, icon ); - if ( state->cur_icon ) { - if ( index == listview_get_selected ( state->list_view ) ){ - icon_set_surface ( state->cur_icon, icon ); - } - } if ( state->tokens && config.show_match ) { RofiHighlightColorStyle th = { ROFI_HL_BOLD | ROFI_HL_UNDERLINE, { 0.0, 0.0, 0.0, 0.0 } }; @@ -998,11 +993,6 @@ void rofi_view_update ( RofiViewState *state, gboolean qr ) widget_draw ( WIDGET ( state->overlay ), d ); } - int selected = listview_get_selected ( state->list_view ); - cairo_surface_t *icon = mode_get_icon ( state->sw, state->line_map[selected], 32); - if ( state->cur_icon ) { - icon_set_surface ( state->cur_icon, icon ); - } TICK_N ( "widgets" ); cairo_surface_flush ( CacheState.edit_surf ); if ( qr ) { @@ -1655,9 +1645,6 @@ static void rofi_view_add_widget ( RofiViewState *state, widget *parent_widget, else if ( g_ascii_strncasecmp ( name, "icon", 4 ) == 0 ) { icon *t = icon_create ( parent_widget, name ); box_add ( (box *) parent_widget, WIDGET ( t ), TRUE ); - if ( rofi_theme_get_boolean ( WIDGET ( t ), "show-current", FALSE ) ) { - state->cur_icon = t; - } } else { wid = (widget *) box_create ( parent_widget, name, ROFI_ORIENTATION_VERTICAL ); |