forked from AuroraMiddleware/gtk
iconview: make it possible for selected cells to render a border
Call gtk_render_frame() after gtk_render_background() there. https://bugzilla.gnome.org/show_bug.cgi?id=654179
This commit is contained in:
parent
a47528fd59
commit
1fdfb18c37
@ -2952,11 +2952,17 @@ gtk_icon_view_paint_item (GtkIconView *icon_view,
|
||||
flags |= GTK_CELL_RENDERER_SELECTED;
|
||||
|
||||
gtk_style_context_set_state (style_context, state);
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
cell_area.x = x;
|
||||
|
Loading…
Reference in New Issue
Block a user