diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c index 91efa40625..9267dd6ddc 100644 --- a/gtk/gtkiconview.c +++ b/gtk/gtkiconview.c @@ -3115,19 +3115,16 @@ gtk_icon_view_paint_item (GtkIconView *icon_view, gtk_style_context_set_state (style_context, state); - if (item->selected) - { - gtk_render_background (style_context, cr, - x - icon_view->priv->item_padding, - y - icon_view->priv->item_padding, - item->cell_area.width + icon_view->priv->item_padding * 2, - item->cell_area.height + icon_view->priv->item_padding * 2); - gtk_render_frame (style_context, cr, - x - icon_view->priv->item_padding, - y - icon_view->priv->item_padding, - item->cell_area.width + icon_view->priv->item_padding * 2, - item->cell_area.height + icon_view->priv->item_padding * 2); - } + gtk_render_background (style_context, cr, + x - priv->item_padding, + y - priv->item_padding, + item->cell_area.width + priv->item_padding * 2, + item->cell_area.height + priv->item_padding * 2); + gtk_render_frame (style_context, cr, + x - priv->item_padding, + y - priv->item_padding, + item->cell_area.width + priv->item_padding * 2, + item->cell_area.height + priv->item_padding * 2); cell_area.x = x; cell_area.y = y;