CellRendererIcon: clipping rectangle not applied, SL #3872

We do not apply the clipping rectangle in do_render, we
need to call clip on the cairo_t as well. This solves the
issue in the Journal and in the Activity List View where
the icons do only appear on hovering over them.

See gtk_cell_renderer_render [1] for background information.

[1] http://git.gnome.org/browse/gtk+/tree/gtk/gtkcellrenderer.c#n731

Signed-off-by: Simon Schampijer <simon@laptop.org>
Acked-by: Manuel Quiñones <manuq@laptop.org>
master
Simon Schampijer 12 years ago
parent c0756f48d4
commit c6c2220f0d

@ -856,6 +856,7 @@ class CellRendererIcon(Gtk.CellRenderer):
cr.set_source_surface(surface, math.floor(x), math.floor(y))
cr.rectangle(cell_area.x, cell_area.y, cell_area.width,
cell_area.height)
cr.clip()
cr.paint()

Loading…
Cancel
Save