The cairo context you get is already clipped to the exposed region. You don't need to do any extra work.
On Wed, Jul 16, 2014 at 12:33 PM, ax487 <ax487@xxxxxx> wrote:
Hello all,
I am currently porting an application from gtk2 to gtk3. I just noticed
that the "expose_event" is no longer supported, instead there is a
"draw" signal. I was just wondering, the "expose_event" always came with
a GdkEventExpose* attached which did in particular contain the rectangle
which was invalidated. Is it possible to obtain the invalidated
rectangle inside the "draw" handler or is it necessary to repaint the
entire widget? (I could not find a suitable function in the gtk3/gdk3
documentation so far)
ax487
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list
--
Jasper
_______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx https://mail.gnome.org/mailman/listinfo/gtk-list