iconview: always draw a cell background

Don't just draw it for selected cells.
This commit is contained in:
Benjamin Otte 2014-09-16 02:55:24 +02:00
parent fdb13b6ef5
commit 48d56c4077

View File

@ -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;