mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-01 00:11:29 +00:00
iconview: always draw a cell background
Don't just draw it for selected cells.
This commit is contained in:
parent
fdb13b6ef5
commit
48d56c4077
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user