]> Pileus Git - ~andy/gtk/commit
widget: Clip drawing to the widget's allocation.
authorBenjamin Otte <otte@redhat.com>
Tue, 14 Sep 2010 14:35:12 +0000 (16:35 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 26 Sep 2010 13:11:42 +0000 (15:11 +0200)
commit0acec382c8deacabac089b70131e6ea531f936e1
tree7f24b499e327968775d8b5761fd2ba3744ff8a9a
parent0c285bad75e9d05fab66798427e832bbc0bb79e4
widget: Clip drawing to the widget's allocation.

I've seen (and written) quite some widgets (and theme engines) that use
cairo_paint() to draw the background. So avoiding overdraw makes sense.

Also move all that setup into a _gtk_widget_draw_internal() function
that will be used by all functions that can be used by other functions
that draw widgets.
gtk/gtkwidget.c
gtk/gtkwidget.h